%bcond_without initrd # don't build initrd version
%bcond_with dietlibc # build dietlibc-based initrd version
%bcond_with glibc # build glibc-based initrd version
+%bcond_with verbose
#
%ifnarch %{ix86} %{x8664} ppc
%define with_glibc 1
%define CrossOpts %{nil}
%endif
+%define filterout_ld -Wl,-z,-combreloc
+
%description
BusyBox combines tiny versions of many common UNIX utilities into a
single small executable. It provides minimalist replacements for most
install %{SOURCE2} .config
%{__make} oldconfig
%{__make} \
+ %{?with_verbose:V=1} \
CROSS_CFLAGS="%{rpmcflags} -Os -D_BSD_SOURCE" \
LDFLAGS="%{ld_rpmldflags} -static" \
%if %{with dietlibc}
%if %{with static}
%{__make} oldconfig
%{__make} \
+ %{?with_verbose:V=1} \
%{CrossOpts} \
CFLAGS_EXTRA="%{rpmcflags}" \
LDFLAGS="%{ld_rpmldflags} -static" \
%{__make} oldconfig
%{__make} \
+ %{?with_verbose:V=1} \
%{CrossOpts} \
CFLAGS_EXTRA="%{rpmcflags}" \
LDFLAGS="%{ld_rpmldflags}" \