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 | 942ef838e062ff494b8dbfaa9e01c0d5b87e18be (patch) | |
| tree | b9a97d7a6a2b0efbc1942bb7a1b0d271e78cc647 | |
| parent | c886f05e4a84202803090adb0312450f3ea5a354 (diff) | |
| download | qpid-python-942ef838e062ff494b8dbfaa9e01c0d5b87e18be.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@647937 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | qpid/cpp/qpidc.spec.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/qpidc.spec.in b/qpid/cpp/qpidc.spec.in index 2819f02c45..966e293931 100644 --- a/qpid/cpp/qpidc.spec.in +++ b/qpid/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 |
