It was really stupid idea to use *_LDFLAGS for some global variable.
Signed-off-by: Karel Zak <kzak@redhat.com>
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.
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
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
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
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)