From 621a3530926ccd87d9558bf395be89073bca6908 Mon Sep 17 00:00:00 2001 From: "ahrenholz@gmail.com" Date: Tue, 10 Sep 2013 16:24:32 +0000 Subject: [PATCH] (Boeing r1773) properly pass CFLAGS and LDFLAGS when building extension module via setup.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this fixes Debian build issues when hardening flags are used and properly passes the -D_GNU_SOURCE required for the "implicit declaration of function ‘posix_openpt’" warning --- trunk/daemon/src/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/daemon/src/Makefile.am b/trunk/daemon/src/Makefile.am index 30ada1be..2ce9bb9c 100755 --- a/trunk/daemon/src/Makefile.am +++ b/trunk/daemon/src/Makefile.am @@ -1,5 +1,5 @@ # CORE -# (c)2010-2012 the Boeing Company. +# (c)2010-2013 the Boeing Company. # See the LICENSE file included in this distribution. # # author: Jeff Ahrenholz @@ -32,7 +32,7 @@ netns_SOURCES = ${SRC_NETNS} noinst_LIBRARIES = libnetns.a libnetns_a_SOURCES = netnsmodule.c vcmdmodule.c libnetns.a: - SBINDIR=@SBINDIR@ LDFLAGS="@libev_LIBS@" CFLAGS=@libev_CFLAGS@ $(PYTHON) setup.py build + SBINDIR=@SBINDIR@ LDFLAGS="$(LDFLAGS) @libev_LIBS@" CFLAGS="$(CFLAGS) @libev_CFLAGS@" $(PYTHON) setup.py build install: install-exec-hook @@ -57,7 +57,7 @@ clean-local-check: -rm -rf build rpmbuild.sh: - echo SBINDIR=@SBINDIR@ CFLAGS=@libev_CFLAGS@ $(PYTHON) setup.py build > rpmbuild.sh + echo SBINDIR=@SBINDIR@ LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS) @libev_CFLAGS@" $(PYTHON) setup.py build > rpmbuild.sh chmod a+x rpmbuild.sh rpm: rpmbuild.sh