]> err.no Git - util-linux/commitdiff
build-sys: remove LT_STATIC_LDFLAGS
authorKarel Zak <kzak@redhat.com>
Thu, 5 Nov 2009 21:49:11 +0000 (22:49 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 5 Nov 2009 21:49:26 +0000 (22:49 +0100)
It was really stupid idea to use *_LDFLAGS for some global variable.

Signed-off-by: Karel Zak <kzak@redhat.com>
config/include-Makefile.am
fdisk/Makefile.am
misc-utils/Makefile.am
mount/Makefile.am

index ae6414217b89010433f2cea15e2c693c9cf2cbf9..f00776958f2f951cb155eeedad8f59a58765d3c0 100644 (file)
@@ -3,9 +3,6 @@ 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 e238afc0af8fd78a3b13790066d914e6d4cc6e16..fed3ebfda47f16bdb388fd31792e1ddf9780a46d 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 = $(LT_STATIC_LDFLAGS)
+fdisk_static_LDFLAGS = -all-static
 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 = $(LT_STATIC_LDFLAGS)
+sfdisk_static_LDFLAGS = -all-static
 endif
 
 if USE_SLANG
index 4acf88cb6430760c6f04b7225b76712a8078bb12..3ce85c6471060ac660bf0b221f3b71fd033447db 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 = $(LT_STATIC_LDFALGS)
+blkid_static_LDFLAGS = -all-static
 blkid_static_LDADD = $(ul_libblkid_la)
 blkid_static_CFLAGS = -I$(ul_libblkid_srcdir)
 endif
index dea572ad61ecaea56c45606d3cb56528bf9ab52a..60ea59e058a06aa8cbdc76c0d87d46d14c9256d1 100644 (file)
@@ -24,7 +24,7 @@ srcs_mount = fstab.c mount_mntent.c getusername.c lomount.c devname.c devname.h
 ldadd_common =
 ldadd_static =
 cflags_common =
-ldflags_static = $(LT_STATIC_LDFLAGS)
+ldflags_static = -all-static
 
 mount_SOURCES = mount.c $(srcs_mount) ../lib/setproctitle.c
 mount_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS) $(cflags_common)