For compatibility with e2fsprogs tree:
commit
eb630fd8708ae433e55e384079c08e0f0f040d22
Author: Eric Sandeen <sandeen@redhat.com>
Date: Tue Feb 24 23:15:33 2009 -0600
e2fsprogs: blkid.static make target
Nice for testing w/o needing to swizzle around system
libraries...
Signed-off-by: Karel Zak <kzak@redhat.com>
AC_FUNC_FSEEKO
dnl Static compilation
-m4_define([UTIL_STATIC_PROGRAMS], [losetup, mount, umount, fdisk, sfdisk])
+m4_define([UTIL_STATIC_PROGRAMS], [losetup, mount, umount, fdisk, sfdisk, blkid])
AC_ARG_ENABLE([static-programs],
[AS_HELP_STRING([--enable-static-programs=LIST],
sbin_PROGRAMS = blkid findfs
dist_man_MANS = blkid.8 findfs.8
+
+if HAVE_STATIC_BLKID
+sbin_PROGRAMS += blkid.static
+blkid_static_SOURCES = $(blkid_SOURCES)
+blkid_static_LDFLAGS = "-all-static" # libtool option
+blkid_static_LDADD = $(ul_libblkid_la)
+blkid_static_CFLAGS = -I$(ul_libblkid_srcdir)
+endif