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 = $(LDFLAGS_STATIC)
+fdisk_static_LDFLAGS = $(LT_STATIC_LDFLAGS)
endif
if !ARCH_SPARC
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
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
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)