- Make debuginfo's smaller on IBS.

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=326
This commit is contained in:
Tomáš Chvátal 2015-09-17 12:05:52 +00:00 committed by Git OBS Bridge
parent bba63ed359
commit ce2a16fa0b
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 17 12:05:26 UTC 2015 - tchvatal@suse.com
- Make debuginfo's smaller on IBS.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 17 08:20:21 UTC 2015 - tchvatal@suse.com Thu Sep 17 08:20:21 UTC 2015 - tchvatal@suse.com

View File

@ -1034,7 +1034,12 @@ fi
# make sure that JAVA_HOME is set correctly # make sure that JAVA_HOME is set correctly
source %{_sysconfdir}/profile.d/alljava.sh source %{_sysconfdir}/profile.d/alljava.sh
# use RPM_OPT_FLAGS, ... # use RPM_OPT_FLAGS, ...
%if 0%{?is_opensuse} != 1
# ON IBS remove big debugsymbols as we simply consume too much space
ARCH_FLAGS="`echo %{optflags} | sed -e 's/^-g /-g1 /g' -e 's/ -g / -g1 /g' -e 's/ -g$/ -g1/g'`"
%else
ARCH_FLAGS="%{optflags}" ARCH_FLAGS="%{optflags}"
%endif
CFLAGS="$ARCH_FLAGS" CFLAGS="$ARCH_FLAGS"
CXXFLAGS="$ARCH_FLAGS" CXXFLAGS="$ARCH_FLAGS"
export ARCH_FLAGS CFLAGS CXXFLAGS export ARCH_FLAGS CFLAGS CXXFLAGS