]> git.pld-linux.org Git - packages/busybox.git/commitdiff
- switch to uClibc but leave dietlibc in bcond
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 2 Aug 2003 23:49:08 +0000 (23:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    busybox.spec -> 1.56

busybox.spec

index 98c08b3ddac31a1458057b1c3dd9049b9cf6f145..245788e93c54333d966e6f336399447f959fbd06 100644 (file)
@@ -22,6 +22,8 @@
 %bcond_without static  # don't build static version
 %bcond_without initrd  # don't build initrd version
 
+%bcond_with dietlibc
+
 %define        pre     pre2
 Summary:       Set of common unix utils for embeded systems
 Summary(pl):   Zestaw narzêdzi uniksowych dla systemów wbudowanych
@@ -51,7 +53,7 @@ URL:          http://www.busybox.net/
 %{?with_grep_prov:Provides:    grep}
 %{?with_sh_prov:Provides:      /bin/sh}
 %{?with_static:BuildRequires:  glibc-static}
-%{?with_initrd:BuildRequires:  dietlibc-static}
+%{?with_initrd:BuildRequires:  %{?with_dietlibc:dietlibc}%{?!with_dietlibc:uClibc}-static}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -135,8 +137,12 @@ install %{SOURCE2} .config
 %{__make} \
        CFLAGS_EXTRA="%{rpmcflags} -D_BSD_SOURCE" \
        LDFLAGS="%{rpmldflags} -static" \
+%if %{with dietlibc}
        LIBRARIES="-lrpc" \
        CC="diet gcc"
+%else
+       CC="%{_target_cpu}-uclibc-gcc"
+%endif
 mv -f busybox busybox.initrd
 %{__make} clean
 install %{SOURCE1} .config
This page took 0.076123 seconds and 4 git commands to generate.