]> git.pld-linux.org Git - packages/busybox.git/commitdiff
- use %ld_rpmldflags auto/th/busybox-1_3_1-1
authorsparky <sparky@pld-linux.org>
Sun, 31 Dec 2006 14:09:34 +0000 (14:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    busybox.spec -> 1.122

busybox.spec

index 6e43c89a4e9d807549bd2dd14209bebdb61a8aa7..4b611de3b28f58d3a8bb7fc4b304073dbfea0cfd 100644 (file)
@@ -57,6 +57,7 @@ Patch10:      %{name}-noshadow.patch
 URL:           http://www.busybox.net/
 BuildRequires: gcc >= 3.2
 BuildRequires: perl-tools-pod
+BuildRequires: rpmbuild(macros) >= 1.333
 %{?with_static:BuildRequires:  glibc-static}
 %if %{with initrd}
        %if %{with dietlibc}
@@ -84,8 +85,6 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _bindir         /bin
 %define                _initrd_bindir  /bin
-# ld is used to link applets
-%define                filterout_ld    -Wl,--as-needed
 
 %if "%{_target_base_arch}" != "%{_arch}"
        %define CrossOpts CROSS="%{_target_cpu}-pld-linux-"
@@ -171,7 +170,7 @@ install %{SOURCE2} .config
 %{__make} oldconfig
 %{__make} \
        CROSS_CFLAGS="%{rpmcflags} -Os -D_BSD_SOURCE" \
-       LDFLAGS="%{rpmldflags} -static" \
+       LDFLAGS="%{ld_rpmldflags} -static" \
 %if %{with dietlibc}
        LIBRARIES="-lrpc" \
        CC="diet gcc"
@@ -203,7 +202,7 @@ install %{SOURCE1} .config
 %{__make} \
        %{CrossOpts} \
        CFLAGS_EXTRA="%{rpmcflags}" \
-       LDFLAGS="%{rpmldflags} -static" \
+       LDFLAGS="%{ld_rpmldflags} -static" \
        CC="%{__cc}"
 mv -f busybox built/busybox.static
 %{__make} clean
@@ -213,7 +212,7 @@ mv -f busybox built/busybox.static
 %{__make} \
        %{CrossOpts} \
        CFLAGS_EXTRA="%{rpmcflags}" \
-       LDFLAGS="%{rpmldflags}" \
+       LDFLAGS="%{ld_rpmldflags}" \
        CC="%{__cc}"
 %{__make} busybox.links docs/BusyBox.1
 
This page took 0.334523 seconds and 4 git commands to generate.