diff options
author | Damien Miller <djm@mindrot.org> | 2019-11-29 12:32:23 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-11-29 12:32:23 +1100 |
commit | b218055e59a7c1a1816f7a55ca18e3f3c05d63a4 (patch) | |
tree | 10bc1600b9dca94071750cba7cc637158450cba7 /openbsd-compat | |
parent | 0dedb703adcd98d0dbc4479f5f312a2bd3df2850 (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.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsd-compat/Makefile.in b/openbsd-compat/Makefile.in index 94fb0a55e..c2423324e 100644 --- a/openbsd-compat/Makefile.in +++ b/openbsd-compat/Makefile.in | |||
@@ -7,7 +7,9 @@ VPATH=@srcdir@ | |||
7 | CC=@CC@ | 7 | CC=@CC@ |
8 | LD=@LD@ | 8 | LD=@LD@ |
9 | CFLAGS=@CFLAGS@ | 9 | CFLAGS=@CFLAGS@ |
10 | CFLAGS_NOPIE=@CFLAGS_NOPIE@ | ||
10 | CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ | 11 | CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ |
12 | PICFLAG=@PICFLAG@ | ||
11 | LIBS=@LIBS@ | 13 | LIBS=@LIBS@ |
12 | AR=@AR@ | 14 | AR=@AR@ |
13 | RANLIB=@RANLIB@ | 15 | RANLIB=@RANLIB@ |
@@ -97,7 +99,7 @@ PORTS= port-aix.o \ | |||
97 | port-uw.o | 99 | port-uw.o |
98 | 100 | ||
99 | .c.o: | 101 | .c.o: |
100 | $(CC) $(CFLAGS) $(CPPFLAGS) -c $< | 102 | $(CC) $(CFLAGS_NOPIE) $(PICFLAG) $(CPPFLAGS) -c $< |
101 | 103 | ||
102 | all: libopenbsd-compat.a | 104 | all: libopenbsd-compat.a |
103 | 105 | ||