]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
pdns-recursor: Remove compilation optimization.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 26 Jul 2010 09:28:07 +0000 (11:28 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 26 Jul 2010 09:28:07 +0000 (11:28 +0200)
pdns_recursor will SEGV when compiled with gcc 4.5.0 and -O2.

pkgs/core/pdns-recursor/pdns-recursor.nm

index af072c7d81d2d6b2f5ee4f2691e77a6ee6babbf6..6b7c32da99505648d1846d2e91eca08c897247de 100644 (file)
@@ -43,6 +43,10 @@ endef
 
 PKG_TARBALL    = $(THISAPP).tar.bz2
 
+# XXX pdns-recursors likes to segfault when compiled with normal
+# CFLAGS. So we do it with -O0
+CFLAGS := $(subst -O2,-O0,$(CFLAGS))
+
 define STAGE_BUILD
        cd $(DIR_APP) && LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua \
                make OPTFLAGS="$(CFLAGS)" #$(PARALLELISMFLAGS)