aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMike DePaulo <mikedep333@gmail.com>2015-02-11 19:02:57 -0500
committerMike DePaulo <mikedep333@gmail.com>2015-02-11 19:02:57 -0500
commit4436e97903aa6e2a7732fb98dcb46758a73fe130 (patch)
treedee3bb8968896a81c2c454e2475f39d14538f87c /debian/rules
parent6fc37fa762efc55e5d59158eb180cfe1c0405b26 (diff)
downloadnx-libs-4436e97903aa6e2a7732fb98dcb46758a73fe130.tar.gz
nx-libs-4436e97903aa6e2a7732fb98dcb46758a73fe130.tar.bz2
nx-libs-4436e97903aa6e2a7732fb98dcb46758a73fe130.zip
Fix build when LDFLAGS (etc) contains spaces.
Was needed and was tested on Ubuntu 14.04.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules8
1 files changed, 4 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules
index b8e4ad4e1..e406f56e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,10 +2,10 @@
NULL =
-export CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
-export CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
-export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
-export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+export CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS --export=cmdline)
+export CFLAGS:=$(shell dpkg-buildflags --get CFLAGS --export=cmdline)
+export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS --export=cmdline)
+export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS --export=cmdline)
export LIBDIR = "/usr/lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)"
export INCLUDEDIR = "/usr/include/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)"