From 92485be301a55843376a6e03f08221997b50d5aa Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Mon, 16 Oct 2017 10:42:51 +0200 Subject: nx-libs.spec: handle potentially undefined variables more gracefully. --- nx-libs.spec | 6 +++--- 1 file 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 -- cgit v1.2.3