summaryrefslogtreecommitdiffstats
path: root/fdisk
diff options
context:
space:
mode:
authorStepan Kasal2007-12-11 18:47:34 +0100
committerKarel Zak2008-02-18 13:27:02 +0100
commit8569410cf59389890bb3d5cd9109e9431223c561 (patch)
treea093ac7fcf8e10699a5b6bc6ba441090bfb073fc /fdisk
parentfdisk: use more readable "GPT" name rather than "EFI GPT" (diff)
downloadkernel-qcow2-util-linux-8569410cf59389890bb3d5cd9109e9431223c561.tar.gz
kernel-qcow2-util-linux-8569410cf59389890bb3d5cd9109e9431223c561.tar.xz
kernel-qcow2-util-linux-8569410cf59389890bb3d5cd9109e9431223c561.zip
build-sys: add --enable-static-programs
Add support for static versions of mount, umount, losetup, fdisk, and sfdisk. Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Stepan Kasal <skasal@redhat.com>
Diffstat (limited to 'fdisk')
-rw-r--r--fdisk/Makefile.am12
1 files changed, 12 insertions, 0 deletions
diff --git a/fdisk/Makefile.am b/fdisk/Makefile.am
index 22467021c..3b9dec5d5 100644
--- a/fdisk/Makefile.am
+++ b/fdisk/Makefile.am
@@ -14,12 +14,24 @@ fdisk_SOURCES = fdisk.c fdiskbsdlabel.c fdisksgilabel.c \
fdisk.h fdisksunlabel.h fdisksgilabel.h fdiskaixlabel.h \
fdiskbsdlabel.h fdiskmaclabel.h $(fdisk_common)
+if HAVE_STATIC_FDISK
+sbin_PROGRAMS += fdisk.static
+fdisk_static_SOURCES = $(fdisk_SOURCES)
+fdisk_static_LDFLAGS = $(LDFLAGS_STATIC)
+endif
+
if !ARCH_SPARC
sbin_PROGRAMS += sfdisk
dist_man_MANS += sfdisk.8
sfdisk_SOURCES = sfdisk.c partname.c $(fdisk_common)
+if HAVE_STATIC_SFDISK
+sbin_PROGRAMS += sfdisk.static
+sfdisk_static_SOURCES = $(sfdisk_SOURCES)
+sfdisk_static_LDFLAGS = $(LDFLAGS_STATIC)
+endif
+
if USE_SLANG
sbin_PROGRAMS += cfdisk
dist_man_MANS += cfdisk.8