summaryrefslogtreecommitdiffstats
path: root/sys-utils/Makemodule.am
diff options
context:
space:
mode:
authorKarel Zak2015-01-07 10:59:16 +0100
committerKarel Zak2015-01-07 10:59:16 +0100
commit2fa60c5ec203040c132b27ee0f92f25b5ad75294 (patch)
tree0aa7af1c64c1684e402bcf9be98fa1a109407017 /sys-utils/Makemodule.am
parentfsck.minix: fix segmentation fault (diff)
downloadkernel-qcow2-util-linux-2fa60c5ec203040c132b27ee0f92f25b5ad75294.tar.gz
kernel-qcow2-util-linux-2fa60c5ec203040c132b27ee0f92f25b5ad75294.tar.xz
kernel-qcow2-util-linux-2fa60c5ec203040c132b27ee0f92f25b5ad75294.zip
build-sys: support nsenter.static
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/Makemodule.am')
-rw-r--r--sys-utils/Makemodule.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am
index ef793c116..15d0a9507 100644
--- a/sys-utils/Makemodule.am
+++ b/sys-utils/Makemodule.am
@@ -357,6 +357,13 @@ usrbin_exec_PROGRAMS += nsenter
dist_man_MANS += sys-utils/nsenter.1
nsenter_SOURCES = sys-utils/nsenter.c
nsenter_LDADD = $(LDADD) libcommon.la
+
+if HAVE_STATIC_NSENTER
+usrbin_exec_PROGRAMS += nsenter.static
+nsenter_static_SOURCES = $(nsenter_SOURCES)
+nsenter_static_LDFLAGS = -all-static
+nsenter_static_LDADD = $(nsenter_LDADD)
+endif
endif
if BUILD_HWCLOCK