Whamcloud - gitweb
debian: don't build BUILD-STATIC if SKIP_STATIC=yes
authorTheodore Ts'o <tytso@mit.edu>
Tue, 27 Mar 2012 04:44:11 +0000 (21:44 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 Mar 2012 05:54:41 +0000 (22:54 -0700)
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" <tytso@mit.edu>
debian/rules

index 692eebc..d681d21 100755 (executable)
@@ -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)