File pdns-3.0.rc1_polarssl.patch of Package pdns

Index: pdns/ext/polarssl-1.1.2/library/Makefile
===================================================================
--- pdns/ext/polarssl-1.1.2/library/Makefile.orig
+++ pdns/ext/polarssl-1.1.2/library/Makefile
@@ -1,6 +1,6 @@
 
 # Also see "include/polarssl/config.h"
-
+CC=gcc
 CFLAGS	+= -I../include -D_FILE_OFFSET_BITS=64 -Wall -W -Wdeclaration-after-statement
 OFLAGS	= -O
 
@@ -11,7 +11,7 @@ OFLAGS	= -O
 # CFLAGS += -D_BSD_EXTENSION
 
 # To compile as a shared library:
-# CFLAGS += -fPIC
+CFLAGS += -fPIC -DPIC
 
 SONAME=libpolarssl.so.0
 
@@ -37,7 +37,7 @@ OBJS=	aes.o		arc4.o		asn1parse.o		\
 		x509parse.o	xtea.o
 	
 
-.SILENT:
+#.SILENT:
 
 all: static
 
@@ -46,27 +46,26 @@ static: libpolarssl.a
 shared: libpolarssl.$(DLEXT)
 
 libpolarssl.a: $(OBJS)
-	echo "  AR    $@"
+#	echo "  AR    $@"
 	$(AR) r $@ $(OBJS)
-	echo "  RL    $@"
+#	echo "  RL    $@"
 	$(AR) s $@
 
 libpolarssl.so: libpolarssl.a
-	echo "  LD    $@"
+#	echo "  LD    $@"
 	$(CC) ${LDFLAGS} -shared -Wl,-soname,$(SONAME) -o $@ $(OBJS)
 
 libpolarssl.dylib: libpolarssl.a
-	echo "  LD    $@"
+#	echo "  LD    $@"
 	$(CC) ${LDFLAGS} -dynamiclib -o $@ $(OBJS)
 
 libpolarssl.dll: libpolarssl.a 
-	echo "  LD    $@" 
+#	echo "  LD    $@" 
 	$(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS) -lws2_32 -lwinmm -lgdi32 
 
 .c.o:
-	echo "  CC    $<"
+#	echo "  CC    $<"
 	$(CC) $(CFLAGS) $(OFLAGS) -c $<
 
 clean:
 	rm -f *.o libpolarssl.*
-