aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2017-10-16 10:42:51 +0200
committerMihai Moldovan <ionic@ionic.de>2017-10-16 10:42:51 +0200
commit92485be301a55843376a6e03f08221997b50d5aa (patch)
tree4139f0d04ee4463576d194ce540a1242011c34d9
parent71bda0ed5c05e6bd75278ae7f88991f8ff35709e (diff)
downloadnx-libs-92485be301a55843376a6e03f08221997b50d5aa.tar.gz
nx-libs-92485be301a55843376a6e03f08221997b50d5aa.tar.bz2
nx-libs-92485be301a55843376a6e03f08221997b50d5aa.zip
nx-libs.spec: handle potentially undefined variables more gracefully.
-rw-r--r--nx-libs.spec6
1 files changed, 3 insertions, 3 deletions
diff --git a/nx-libs.spec b/nx-libs.spec
index 18bb87b6c..1713b86be 100644
--- a/nx-libs.spec
+++ b/nx-libs.spec
@@ -5,8 +5,8 @@
# Works around https://bugs.centos.org/view.php?id=13779 / https://bugzilla.redhat.com/show_bug.cgi?id=1489712
# Compilation failure on PPC64LE due to a compiler bug.
# REMEMBER TO REMOVE ONCE DOWNSTREAM FIXES THE ISSUE!
-%global __global_cflags %{__global_cflags} -mno-vsx
-%global __global_cxxflags %{__global_cxxflags} -mno-vsx
+%global __global_cflags %{?__global_cflags} -mno-vsx
+%global __global_cxxflags %{?__global_cxxflags} -mno-vsx
%endif
Name: nx-libs
@@ -397,7 +397,7 @@ 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}"
+export CDEBUGFLAGS="%{?__global_cppflags} %{?__global_cflags}"
make %{?_smp_mflags} CONFIGURE="$PWD/my_configure" PREFIX=%{_prefix} LIBDIR=%{_libdir}
%install