From fb72ace21afa2bd2dbf49c831dbe6ccae22fdf7b Mon Sep 17 00:00:00 2001 From: Rich Mattes Date: Sat, 10 Aug 2013 10:55:15 -0400 Subject: [PATCH] Don't strip binaries on install so we can get a non-empty debuginfo file --- mosquitto.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mosquitto.spec b/mosquitto.spec index 5f4ab87..eef96ea 100644 --- a/mosquitto.spec +++ b/mosquitto.spec @@ -47,10 +47,12 @@ Python bindings for %{name} rm -r src/uthash.h # Set the install prefix to /usr sed -i "s|prefix=/usr/local|prefix=/usr|" config.mk +# Don't strip binaries on install: rpmbuild will take care of it +sed -i "s|(INSTALL) -s|(INSTALL)|g" lib/Makefile src/Makefile client/Makefile %build export CFLAGS="%{optflags}" -export LDFLAGS="%{__global_ldflags} -Wl,--as-needed" +export LDFLAGS="%{optflags} %{__global_ldflags} -Wl,--as-needed" make all %{?_smp_mflags} pushd lib/python