]> err.no Git - util-linux/commitdiff
build-sys: cleanup static building
authorKarel Zak <kzak@redhat.com>
Thu, 5 Nov 2009 14:58:20 +0000 (15:58 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 5 Nov 2009 14:58:20 +0000 (15:58 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
config/include-Makefile.am
fdisk/Makefile.am
misc-utils/Makefile.am
mount/Makefile.am

index f00776958f2f951cb155eeedad8f59a58765d3c0..ae6414217b89010433f2cea15e2c693c9cf2cbf9 100644 (file)
@@ -3,6 +3,9 @@ AM_CPPFLAGS = -include $(top_builddir)/config.h -I$(top_srcdir)/include \
 AM_CFLAGS = -fsigned-char
 AM_LDFLAGS =
 
+# generic libtool options for static programs
+LT_STATIC_LDFLAGS = -all-static
+
 # Automake (at least up to 1.10) mishandles dist_man_MANS inside conditionals.
 # Unlike with other dist primaries, the files are not distributed if the
 # conditional is false.
index 20906b52fbf828d55c335a87e3fe42639e8e43da..e238afc0af8fd78a3b13790066d914e6d4cc6e16 100644 (file)
@@ -21,7 +21,7 @@ fdisk_SOURCES = fdisk.c fdiskbsdlabel.c fdisksgilabel.c \
 if HAVE_STATIC_FDISK
 sbin_PROGRAMS += fdisk.static
 fdisk_static_SOURCES = $(fdisk_SOURCES)
-fdisk_static_LDFLAGS = $(LDFLAGS_STATIC)
+fdisk_static_LDFLAGS = $(LT_STATIC_LDFLAGS)
 endif
 
 if !ARCH_SPARC
@@ -33,7 +33,7 @@ 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)
+sfdisk_static_LDFLAGS = $(LT_STATIC_LDFLAGS)
 endif
 
 if USE_SLANG
index b95447bac7ac71eb9a41dc1f4be7ad5b7e313be7..4acf88cb6430760c6f04b7225b76712a8078bb12 100644 (file)
@@ -45,7 +45,7 @@ wipefs_CFLAGS = -I$(ul_libblkid_srcdir)
 if HAVE_STATIC_BLKID
 sbin_PROGRAMS += blkid.static
 blkid_static_SOURCES = $(blkid_SOURCES)
-blkid_static_LDFLAGS = "-all-static"           # libtool option
+blkid_static_LDFLAGS = $(LT_STATIC_LDFALGS)
 blkid_static_LDADD = $(ul_libblkid_la)
 blkid_static_CFLAGS = -I$(ul_libblkid_srcdir)
 endif
index d5bbf201c7045a085a949502cb0be4d495caf87c..dea572ad61ecaea56c45606d3cb56528bf9ab52a 100644 (file)
@@ -24,9 +24,7 @@ srcs_mount = fstab.c mount_mntent.c getusername.c lomount.c devname.c devname.h
 ldadd_common =
 ldadd_static =
 cflags_common =
-
-# generic libtool options for all static programs
-ldflags_static ="-all-static"
+ldflags_static = $(LT_STATIC_LDFLAGS)
 
 mount_SOURCES = mount.c $(srcs_mount) ../lib/setproctitle.c
 mount_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS) $(cflags_common)