]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
make polarssl use -fPIC so we can build PIE executables, for better security. Closing...
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 4 Oct 2012 08:36:35 +0000 (08:36 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 4 Oct 2012 08:36:35 +0000 (08:36 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2752 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/ext/polarssl-1.1.2/library/Makefile

index 26de4d785405790001c63e0183ace6a8d9e780d8..f731e726bdb8f996a5112ef6794cfb9707053815 100644 (file)
@@ -11,7 +11,7 @@ OFLAGS        = -O
 # CFLAGS += -D_BSD_EXTENSION
 
 # To compile as a shared library:
-CFLAGS += -fPIC
+CFLAGS += -fPIC
 
 SONAME=libpolarssl.so.0
 
@@ -36,9 +36,6 @@ OBJS= aes.o           arc4.o          asn1parse.o             \
                ssl_tls.o       timing.o        version.o               \
                x509parse.o     xtea.o
        
-
-.SILENT:
-
 all: static
 
 static: libpolarssl.a
@@ -46,25 +43,19 @@ static: libpolarssl.a
 shared: libpolarssl.$(DLEXT)
 
 libpolarssl.a: $(OBJS)
-       echo "  AR    $@"
        $(AR) r $@ $(OBJS)
-       echo "  RL    $@"
        $(AR) s $@
 
 libpolarssl.so: libpolarssl.a
-       echo "  LD    $@"
        $(CC) ${LDFLAGS} -shared -Wl,-soname,$(SONAME) -o $@ $(OBJS)
 
 libpolarssl.dylib: libpolarssl.a
-       echo "  LD    $@"
        $(CC) ${LDFLAGS} -dynamiclib -o $@ $(OBJS)
 
 libpolarssl.dll: libpolarssl.a 
-       echo "  LD    $@" 
        $(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS) -lws2_32 -lwinmm -lgdi32 
 
 .c.o:
-       echo "  CC    $<"
        $(CC) $(CFLAGS) $(OFLAGS) -c $<
 
 clean: