summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpp/qpidc.spec.in5
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