[phrel/el6] PIE second fix.
Christopher Meng
cicku at fedoraproject.org
Fri Jun 7 14:07:54 UTC 2013
commit f411e33d1e611b25b2bbcb2a7802258b205c57e3
Author: Christopher Meng <rpm at cicku.me>
Date: Fri Jun 7 22:07:18 2013 +0800
PIE second fix.
phrel.spec | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/phrel.spec b/phrel.spec
index bf8c507..c34d144 100644
--- a/phrel.spec
+++ b/phrel.spec
@@ -37,9 +37,11 @@ hosts that PHREL is currently monitoring.
%setup -q
%build
+export CFLAGS="%optflags -fPIE"
+export CXXFLAGS="%optflags -fPIE"
export LDFLAGS="$LDFLAGS -pie -Wl,-z,relro"
%configure --with-snmp --with-mysql
-make CFLAGS="%{optflags}" %{?_smp_mflags}
+make %{?_smp_mflags}
%install
rm -rf %{buildroot}
More information about the scm-commits
mailing list