From: Theodore Ts'o Date: Fri, 12 Sep 2008 13:26:45 +0000 (-0400) Subject: debian: Use dietlibc when possible for building e2fsck.static X-Git-Tag: v1.41.2~11 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=3218dc9db8fc2affeae2fb563db0fc07a55a59de;p=tools%2Fe2fsprogs.git debian: Use dietlibc when possible for building e2fsck.static This fixes a regression introduced in commit 4f2e8f19 where we inadvertently disabled the use of dietlibc on all architectures, instead of just on those architectures which didn't support dietlibc. Signed-off-by: "Theodore Ts'o" --- diff --git a/debian/rules b/debian/rules index 09fac76..dc33274 100755 --- a/debian/rules +++ b/debian/rules @@ -196,10 +196,13 @@ ${CFGSTATICSTAMP}: mkdir -p ${staticbuilddir} ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) if type diet > /dev/null 2>&1 ; then \ - STATIC_CONF_FLAGS="$STATIC_CONF_FLAGS --with-diet-libc"; \ + cd ${staticbuilddir} && AWK=/usr/bin/awk \ + ${topdir}/configure ${STATIC_CONF_FLAGS} \ + --with-diet-libc; \ + else \ + cd ${staticbuilddir} && AWK=/usr/bin/awk \ + ${topdir}/configure ${STATIC_CONF_FLAGS}; \ fi - cd ${staticbuilddir} && AWK=/usr/bin/awk \ - ${topdir}/configure ${STATIC_CONF_FLAGS} else cd ${staticbuilddir} && AWK=/usr/bin/awk CC="${DEB_HOST_GNU_TYPE}-gcc" \ ${topdir}/configure ${COMMON_CONF_FLAGS} ${STATIC_CONF_FLAGS} \