aboutsummaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-03-26 21:44:11 -0700
committerTheodore Ts'o <tytso@mit.edu>2012-03-26 22:54:41 -0700
commitfb8bcfcd631dc5ad8f4cf66aec2370578ee03388 (patch)
tree6c222eb554f652f434342a307a688c753ebe5a06 /debian
parentbe241786e36e4324a64b144df7def72e0b1f93b2 (diff)
downloade2fsprogs-fb8bcfcd631dc5ad8f4cf66aec2370578ee03388.tar.gz
e2fsprogs-fb8bcfcd631dc5ad8f4cf66aec2370578ee03388.tar.xz
e2fsprogs-fb8bcfcd631dc5ad8f4cf66aec2370578ee03388.zip
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" <tytso@mit.edu>
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rules11
1 files changed, 8 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules
index 692eebc9..d681d21e 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)