Author: aconway
Date: Mon Apr 14 12:14:10 2008
New Revision: 647937

URL: http://svn.apache.org/viewvc?rev=647937&view=rev
Log:
https://bugzilla.redhat.com/show_bug.cgi?id=441080 from Ville Skyttä ([EMAIL 
PROTECTED])

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.

Modified:
    incubator/qpid/trunk/qpid/cpp/qpidc.spec.in

Modified: incubator/qpid/trunk/qpid/cpp/qpidc.spec.in
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/qpidc.spec.in?rev=647937&r1=647936&r2=647937&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/qpidc.spec.in (original)
+++ incubator/qpid/trunk/qpid/cpp/qpidc.spec.in Mon Apr 14 12:14:10 2008
@@ -80,14 +80,15 @@
 %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


Reply via email to