From fb8bcfcd631dc5ad8f4cf66aec2370578ee03388 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 26 Mar 2012 21:44:11 -0700 Subject: [PATCH] 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" --- debian/rules | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index 692eebc..d681d21 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) -- 1.8.3.1