From: Theodore Ts'o Date: Tue, 27 Mar 2012 04:44:11 +0000 (-0700) Subject: debian: don't build BUILD-STATIC if SKIP_STATIC=yes X-Git-Tag: v1.42.2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb8bcfcd631dc5ad8f4cf66aec2370578ee03388;p=thirdparty%2Fe2fsprogs.git debian: don't build BUILD-STATIC if SKIP_STATIC=yes Trade off build time for space by using e2fsck.static from BUILD-STD and not building BUILD-STATIC if SKIP_STATIC=yes in the rules.custom file. Signed-off-by: "Theodore Ts'o" --- diff --git a/debian/rules b/debian/rules index 692eebc9d..d681d21e0 100755 --- a/debian/rules +++ b/debian/rules @@ -127,11 +127,16 @@ else CFLAGS += -D__NO_STRING_INLINES endif -ifeq (${DEB_HOST_ARCH_OS},linux) +ifneq (${DEB_HOST_ARCH_OS},linux) +SKIP_STATIC = yes +endif + +ifeq ($(SKIP_STATIC),yes) +BUILD_STATIC = +E2FSCK_STATIC = ${stdbuilddir}/e2fsck/e2fsck.static +else BUILD_STATIC = build-static E2FSCK_STATIC = ${staticbuilddir}/e2fsck/e2fsck.static -else -E2FSCK_STATIC = ${stdbuilddir}/e2fsck/e2fsck.static endif ifeq ($(SKIP_BF),yes)