[Pdns-dev] Patch to fix Makefile-recursor for Make 3.80

Augie Schwer augie.schwer at gmail.com
Mon Jun 30 13:42:58 CEST 2008


FYI:

I needed to apply the following before I could get the latest PowerDNS
Recursor (3.1.7) to build under CentOS 4 using Make version 3.80;
which admittedly is a version that is six years out of date.

[augie at augnix pdns]$ svn diff Makefile-recursor
Index: Makefile-recursor
===================================================================
--- Makefile-recursor   (revision 1228)
+++ Makefile-recursor   (working copy)
@@ -42,11 +42,13 @@
        STATICFLAGS=-Wl,-Bstatic -lstdc++ $(LUALIBS) -lgcc
-Wl,-Bdynamic -static-libgcc -lm -lc
        LINKCC=$(CC)
        LDFLAGS += malloc.o -ldl -lm
-else ifeq ($(STATIC),full)
+else
+   ifeq ($(STATIC),full)
        STATICFLAGS=-lstdc++ $(LUALIBS) -ldl -lm -static
        LINKCC=$(CC)
-else
+   else
        LDFLAGS += malloc.o $(LUALIBS)
+   endif
 endif



-- 
Augie Schwer - Augie at Schwer.us - http://schwer.us
Key fingerprint = 9815 AE19 AFD1 1FE7 5DEE 2AC3 CB99 2784 27B0 C072


More information about the Pdns-dev mailing list