openbsd-ports/lang/swi-prolog/patches/patch-src_Makefile_in
2011-09-17 16:06:32 +00:00

22 lines
805 B
Plaintext

$OpenBSD: patch-src_Makefile_in,v 1.2 2011/09/17 16:06:32 edd Exp $
--- src/Makefile.in.orig Fri Aug 19 15:31:28 2011
+++ src/Makefile.in Sat Sep 17 11:59:17 2011
@@ -76,7 +76,7 @@ COFLAGS=@COFLAGS@
CWFLAGS=@CWFLAGS@
CIFLAGS=@CIFLAGS@
CMFLAGS=@CMFLAGS@
-CPFLAGS=
+CPFLAGS=@CPPFLAGS@
CFLAGS= $(CWFLAGS) $(COFLAGS) $(CIFLAGS) $(CMFLAGS) $(CPFLAGS)
LDFLAGS=@LDFLAGS@ $(CPFLAGS)
@@ -209,7 +209,7 @@ $(RUNTIMEDIR)/$(SHARED): dirs $(OBJ) $(LIBOBJ) $(XOBJ)
else
$(RUNTIMEDIR)/$(SHAREDV): dirs $(OBJ) $(LIBOBJ) $(XOBJ)
$(CC) -shared $(COFLAGS) -o $@ $(SONAMEOPT) \
- $(OBJ) $(LIBOBJ) $(XOBJ) $(LDFLAGS) $(LIBS)
+ $(OBJ) $(LIBOBJ) $(XOBJ) $(LDFLAGS) -lexecinfo $(LIBS)
$(RUNTIMEDIR)/$(SHARED): $(RUNTIMEDIR)/$(SHAREDV)
( cd ../lib/$(PLARCH) && rm -f $(SHARED) && ln -s $(SHAREDV) $(SHARED) )