diff options
author | Alan Conway <aconway@apache.org> | 2008-04-14 19:14:10 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-04-14 19:14:10 +0000 |
commit | 0e4526fa8f381e2275d05be03de81802bc0dcabc (patch) | |
tree | fffc8a6813a11e608deafbea10e0e03efa841a51 /cpp | |
parent | 6fde75b10b8d71a06fcf7ae6026473b4693165f5 (diff) | |
download | qpid-python-0e4526fa8f381e2275d05be03de81802bc0dcabc.tar.gz |
https://bugzilla.redhat.com/show_bug.cgi?id=441080 from Ville Skyttä (ville.skytta@iki.fi)
qpidc's build does not use $RPM_OPT_FLAGS so it misses some compiler security
features, and strips installed executables thus preventing rpmbuild from doing
its job and creating a useful debuginfo package. Candidate fix for both
attached, build tested only.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@647937 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/qpidc.spec.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/qpidc.spec.in b/cpp/qpidc.spec.in index 2819f02c45..966e293931 100644 --- a/cpp/qpidc.spec.in +++ b/cpp/qpidc.spec.in @@ -80,14 +80,15 @@ exit 0 %setup -q %build -%configure --disable-static --without-cpg CXXFLAGS="-g -O3 -DNDEBUG" +CXXFLAGS="%{optflags} -DNDEBUG -O3" \ +%configure --disable-static --without-cpg make %{?_smp_mflags} # Remove this generated perl file, we don't need it and it upsets rpmlint. rm docs/api/html/installdox %install rm -rf %{buildroot} -make install-strip DESTDIR=%{buildroot} +make install DESTDIR=%{buildroot} install -Dp -m0755 etc/qpidd %{buildroot}%{_initrddir}/qpidd install -d -m0755 %{buildroot}%{_localstatedir}/lib/qpidd rm -f %{buildroot}%_libdir/*.a |