Accepting request 86476 from home:uli_suse:branches:Base:System

- cross-build fix: use %__cc, %configure macros

OBS-URL: https://build.opensuse.org/request/show/86476
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysvinit?expand=0&rev=143
This commit is contained in:
Dirk Mueller 2011-10-04 09:22:53 +00:00 committed by Git OBS Bridge
parent e67724a9ea
commit 22168d87c6
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 4 08:51:19 UTC 2011 - uli@suse.com
- cross-build fix: use %__cc, %configure macros
-------------------------------------------------------------------
Thu Sep 8 15:20:30 UTC 2011 - giecrilj@stegny.2a.pl

View File

@ -123,25 +123,25 @@ popd
%build
RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -D_FILE_OFFSET_BITS=64 -pipe"
CC=gcc
CC=%__cc
export RPM_OPT_FLAGS CC
make %{?_smp_mflags} WITH_SELINUX=yes DISTRO=SuSE
pushd ../showconsole-%{SCVER}
make %{?_smp_mflags}
make %{?_smp_mflags} CC="%__cc"
popd
pushd ../killproc-%{KPVER}
make %{?_smp_mflags} INC="-I../showconsole-%{SCVER} -L../showconsole-%{SCVER}"
make %{?_smp_mflags} INC="-I../showconsole-%{SCVER} -L../showconsole-%{SCVER}" CC="%__cc"
popd
pushd ../powerd-%{PDVER}
%ifnarch s390 s390x
./configure --prefix= --bindir='$(DESTDIR)/sbin' \
%configure --prefix= --bindir='$(DESTDIR)/sbin' \
--mandir='$(DESTDIR)%{_mandir}' \
--sbindir='$(DESTDIR)/sbin'
make %{?_smp_mflags} CFLAGS="-I../sysvinit-%{SIVER}dsf/src $RPM_OPT_FLAGS "
%endif
popd
pushd ../startpar-%{START}
make %{?_smp_mflags} INC="-I../showconsole-%{SCVER} -L../showconsole-%{SCVER}"
make %{?_smp_mflags} INC="-I../showconsole-%{SCVER} -L../showconsole-%{SCVER}" CC="%__cc"
popd
%install