summaryrefslogtreecommitdiffstats
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2019-11-29 12:32:23 +1100
committerDamien Miller <djm@mindrot.org>2019-11-29 12:32:23 +1100
commitb218055e59a7c1a1816f7a55ca18e3f3c05d63a4 (patch)
tree10bc1600b9dca94071750cba7cc637158450cba7 /openbsd-compat
parent0dedb703adcd98d0dbc4479f5f312a2bd3df2850 (diff)
(yet) another x-platform fix for sk-dummy.so
Check for -fPIC support from compiler Compile libopenbsd-compat -fPIC Don't mix -fPIE and -fPIC when compiling
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsd-compat/Makefile.in b/openbsd-compat/Makefile.in
index 94fb0a55..c2423324 100644
--- a/openbsd-compat/Makefile.in
+++ b/openbsd-compat/Makefile.in
@@ -7,7 +7,9 @@ VPATH=@srcdir@
CC=@CC@
LD=@LD@
CFLAGS=@CFLAGS@
+CFLAGS_NOPIE=@CFLAGS_NOPIE@
CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@
+PICFLAG=@PICFLAG@
LIBS=@LIBS@
AR=@AR@
RANLIB=@RANLIB@
@@ -97,7 +99,7 @@ PORTS= port-aix.o \
port-uw.o
.c.o:
- $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
+ $(CC) $(CFLAGS_NOPIE) $(PICFLAG) $(CPPFLAGS) -c $<
all: libopenbsd-compat.a