From d017d211d2a56f9b07b788d8985f96be535ffce2 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Mon, 16 Oct 2017 10:26:16 +0200 Subject: nx-libs.spec: pass CDEBUGSFLAGS and friends directly to the make command in %build. --- debian/changelog | 1 + nx-libs.spec | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index c4bf56dab..295c475a2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -21,6 +21,7 @@ nx-libs (2:3.5.0.33-0x2go1) UNRELEASED; urgency=low Backported from Arctica GH 3.6.x branch. v2: backport to nx-libs 3.5.0.x (Mihai Moldovan) - Drop ugly sed hack to push optflags to build system. + - Pass CDEBUGSFLAGS and friends directly to the make command in %build. * debian/: - Add x2goagent.options file for compatibility with x2goserver nightly. * debian/roll-tarballs.sh: diff --git a/nx-libs.spec b/nx-libs.spec index 85cf8b13c..cdf362da1 100644 --- a/nx-libs.spec +++ b/nx-libs.spec @@ -764,8 +764,8 @@ chmod a+x my_configure; %{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro} export SHLIBGLOBALSFLAGS="%{__global_ldflags}" export LOCAL_LDFLAGS="%{__global_ldflags}" -export CDEBUGFLAGS="%{__global_cppflags} %{__global_cflags}" -make %{?_smp_mflags} CONFIGURE="$PWD/my_configure" PREFIX=%{_prefix} USRLIBDIR=%{_libdir} SHLIBDIR=%{_libdir} +export CDEBUGFLAGS="%{?__global_cppflags} %{?__global_cflags}" +make %{?_smp_mflags} CONFIGURE="$PWD/my_configure" PREFIX=%{_prefix} USRLIBDIR=%{_libdir} SHLIBDIR=%{_libdir} CDEBUGFLAGS="${CDEBUGFLAGS}" LOCAL_LDFLAGS="${LOCAL_LDFLAGS}" SHLIBSGLOBALSFLAGS="${SHLIBSGLOBALSFLAGS}" %install make install \ -- cgit v1.2.3