aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMike DePaulo <mikedep333@gmail.com>2015-02-11 19:02:57 -0500
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-02-12 10:08:11 +0100
commitbccb2750bd5e630401e73528f9afb0bb0692f15b (patch)
treec3357e37ea958297a3f958dd04a468683bd7dcb4 /debian/rules
parent4157e8258b2f9f2d760df5aae1ccfadb5f3eb393 (diff)
downloadnx-libs-bccb2750bd5e630401e73528f9afb0bb0692f15b.tar.gz
nx-libs-bccb2750bd5e630401e73528f9afb0bb0692f15b.tar.bz2
nx-libs-bccb2750bd5e630401e73528f9afb0bb0692f15b.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 bdb9e647a..2953882bc 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)"