X-Git-Url: http://git.pld-linux.org/?p=packages%2Fklibc.git;a=blobdiff_plain;f=klibc.spec;h=4985059b256b4524d8b47b9a85f0d38acef8074e;hp=5b330259f3ea052bdd22f0171cb564e91743f0f1;hb=8c66903c9e75b525b0fa783225e79caa3ab533bb;hpb=00a0ff6f141b2f224bbdbd287a49d33d111a59bf diff --git a/klibc.spec b/klibc.spec index 5b33025..4985059 100644 --- a/klibc.spec +++ b/klibc.spec @@ -7,7 +7,7 @@ Summary(pl): Zminimalizowany podzbi Name: klibc Version: 1.0 Release: 0.1 -License: BSD +License: BSD/GPL Group: Libraries Source0: http://www.kernel.org/pub/linux/libs/klibc/%{name}-%{version}.tar.bz2 # Source0-md5: daaa233fb7905cbe110896fcad9bec7f @@ -70,7 +70,12 @@ cp -ar %{_kernelsrcdir}/include/linux include/linux ln -sf %{_kernelsrcdir}/include/linux/autoconf-up.h include/linux/autoconf.h %{__make} \ +%if "%{_target_base_arch}" != "%{_arch}" + ARCH=%{_target_base_arch} \ + CROSS=%{_target_base_arch}-pld-linux- \ +%else CC=%{__cc} \ +%endif OPTFLAGS="%{rpmcflags} -Os -fomit-frame-pointer -falign-functions=0 \ -falign-jumps=0 -falign-loops=0 -ffreestanding"