[ncview] We need to pass X_CFLAGS to properly compile configure tests for X libraries (with hardening)
Orion Poplawski
orion at fedoraproject.org
Thu Mar 19 02:17:10 UTC 2015
commit 6407aa3e8546ee0dab8c0f101170b024f0d00e74
Author: Orion Poplawski <orion at cora.nwra.com>
Date: Wed Mar 18 20:17:08 2015 -0600
We need to pass X_CFLAGS to properly compile configure tests for X libraries (with hardening)
ncview.spec | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/ncview.spec b/ncview.spec
index 9460f4f..d82f3b8 100644
--- a/ncview.spec
+++ b/ncview.spec
@@ -25,7 +25,8 @@ color maps, invert the data, etc.
%build
-%configure --with-udunits2_incdir=%{_includedir}/udunits2 \
+# We need to pass X_CFLAGS to properly compile configure tests for X libraries
+%configure X_CFLAGS="%{optflags}" --with-udunits2_incdir=%{_includedir}/udunits2 \
--x-libraries=%{_libdir} --datadir=%{_datadir}/ncview
# WARNING!
# The parallel build was tested and it does NOT work.
More information about the scm-commits
mailing list