From e1a7c500bb1efb551ef6b0fe5411082eebcd60c4 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 4 Apr 2012 18:45:35 +0200 Subject: [PATCH] do not filter -O? from RPM_OPT_FLAGS: jakub discovered that LO libraries are built without optimization, which is because in CWS gnumake4, and thus LO 3.5, the variables CFLAGS/CXXFLAGS override the optimization and debug settings used by gbuild, and these are exported by the spec file. --- libreoffice.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libreoffice.spec b/libreoffice.spec index b4173c4..a5c0025 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1026,7 +1026,7 @@ export PATH=$QT4DIR/bin:$PATH #use the RPM_OPT_FLAGS but remove the OOo overridden ones for i in $RPM_OPT_FLAGS; do case "$i" in - -O?|-pipe|-Wall|-g|-fexceptions) continue;; + -pipe|-Wall|-g|-fexceptions) continue;; esac ARCH_FLAGS="$ARCH_FLAGS $i" done