Don't strip -g from RPM_OPT_FLAGS

Missing -g trips over debuginfo generation after latest rpm changes
(only on s390x though, for reasons unknown):

error: Empty %files file /builddir/build/BUILD/libreoffice-5.4.0.3/debugsourcefiles.list
f41
Kalev Lember 7 years ago
parent f2a5b349fa
commit 9c31acd7ea

@ -992,7 +992,7 @@ export PATH=$QT4DIR/bin:$PATH
#use the RPM_OPT_FLAGS but remove the OOo overridden ones #use the RPM_OPT_FLAGS but remove the OOo overridden ones
for i in $RPM_OPT_FLAGS; do for i in $RPM_OPT_FLAGS; do
case "$i" in case "$i" in
-pipe|-Wall|-Werror*|-g|-fexceptions) continue;; -pipe|-Wall|-Werror*|-fexceptions) continue;;
esac esac
ARCH_FLAGS="$ARCH_FLAGS $i" ARCH_FLAGS="$ARCH_FLAGS $i"
done done

Loading…
Cancel
Save