forked from pool/fillup
Accepting request 86382 from home:uli_suse:branches:Base:System
- cross-build workarounds: disable %build section testing, use fake gcc script to work around build system deficiencies OBS-URL: https://build.opensuse.org/request/show/86382 OBS-URL: https://build.opensuse.org/package/show/Base:System/fillup?expand=0&rev=16
This commit is contained in:
parent
88024608e4
commit
81932e2ed3
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 30 15:00:41 UTC 2011 - uli@suse.com
|
||||
|
||||
- cross-build workarounds: disable %build section testing, use fake
|
||||
gcc script to work around build system deficiencies
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de
|
||||
|
||||
|
12
fillup.spec
12
fillup.spec
@ -15,6 +15,8 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: fillup
|
||||
License: GPLv2+
|
||||
Group: System/Base
|
||||
@ -52,6 +54,8 @@ its variable name.
|
||||
# Be sure that the tests for fillup are run in
|
||||
# DEBUG mode for comparision with the references
|
||||
#
|
||||
# build time testing disabled when cross-compiling
|
||||
%if !0%{?_crossbuild}
|
||||
make %{?_smp_mflags} clean
|
||||
make %{?_smp_mflags} test OPTISPLUS="$RPM_OPT_FLAGS"
|
||||
#
|
||||
@ -59,7 +63,13 @@ make %{?_smp_mflags} test OPTISPLUS="$RPM_OPT_FLAGS"
|
||||
# optimzed version.
|
||||
#
|
||||
make %{?_smp_mflags} clean
|
||||
make %{?_smp_mflags} compile COMPILE_OPTION=OPTIMIZE OPTISPLUS="$RPM_OPT_FLAGS"
|
||||
%else
|
||||
# build system does not always honor CC; workaround:
|
||||
echo -e "#!/bin/bash\nexec %__cc \"\$@\"" >gcc
|
||||
chmod 755 gcc
|
||||
export PATH=`pwd`:$PATH
|
||||
%endif
|
||||
make %{?_smp_mflags} compile COMPILE_OPTION=OPTIMIZE OPTISPLUS="$RPM_OPT_FLAGS" CC="%__cc"
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
||||
|
Loading…
Reference in New Issue
Block a user