(Boeing r1773)
properly pass CFLAGS and LDFLAGS when building extension module via setup.py 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
This commit is contained in:
parent
62bb9421f2
commit
3e2e8f77b2
1 changed files with 3 additions and 3 deletions
|
@ -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 <jeffrey.m.ahrenholz@boeing.com>
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue