From: Michael Tremer Date: Mon, 26 Jul 2010 09:28:07 +0000 (+0200) Subject: pdns-recursor: Remove compilation optimization. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b6f6f2ef960a1225d84dcae863c7d2856b2d359;p=ipfire-3.x.git pdns-recursor: Remove compilation optimization. pdns_recursor will SEGV when compiled with gcc 4.5.0 and -O2. --- diff --git a/pkgs/core/pdns-recursor/pdns-recursor.nm b/pkgs/core/pdns-recursor/pdns-recursor.nm index af072c7d8..6b7c32da9 100644 --- a/pkgs/core/pdns-recursor/pdns-recursor.nm +++ b/pkgs/core/pdns-recursor/pdns-recursor.nm @@ -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)