From b218055e59a7c1a1816f7a55ca18e3f3c05d63a4 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 29 Nov 2019 12:32:23 +1100 Subject: (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 --- Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 692b0073..a3760562 100644 --- a/Makefile.in +++ b/Makefile.in @@ -43,7 +43,9 @@ PATHS= -DSSHDIR=\"$(sysconfdir)\" \ CC=@CC@ LD=@LD@ CFLAGS=@CFLAGS@ +CFLAGS_NOPIE=@CFLAGS_NOPIE@ CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@ +PICFLAG=@PICFLAG@ LIBS=@LIBS@ K5LIBS=@K5LIBS@ GSSLIBS=@GSSLIBS@ @@ -601,7 +603,7 @@ SK_DUMMY_OBJS=\ ed25519.lo hash.lo ge25519.lo fe25519.lo sc25519.lo verify.lo .c.lo: Makefile.in config.h - $(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -c $< -o $@ + $(CC) $(CFLAGS_NOPIE) $(PICFLAG) $(CPPFLAGS) -c $< -o $@ regress/misc/sk-dummy/sk-dummy.so: $(SK_DUMMY_OBJS) $(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -shared -o $@ $(SK_DUMMY_OBJS) \ -- cgit v1.2.1