summaryrefslogtreecommitdiffstats
path: root/lib/libzfs/Makefile.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-02-10 10:57:29 -0800
committerBrian Behlendorf <[email protected]>2011-02-10 11:05:44 -0800
commit1ac0ea38a5b19771b0dfbc6b2244c4f674ef1a31 (patch)
tree55c69ba0d4da61494f8b9008e6ff4f535e2f6f30 /lib/libzfs/Makefile.in
parent6c9e06f14de1ed27e6032be2197b8f4cbec7405a (diff)
Add missing -ldl linker option
The inclusion on dlsym(), dlopen(), and dlclose() symbols require us to link against the dl library. Be careful to add the flag to both the libzfs library and the commands which depend on the library.
Diffstat (limited to 'lib/libzfs/Makefile.in')
-rw-r--r--lib/libzfs/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/Makefile.in b/lib/libzfs/Makefile.in
index cad8e6c33..1dbecc335 100644
--- a/lib/libzfs/Makefile.in
+++ b/lib/libzfs/Makefile.in
@@ -315,7 +315,7 @@ AM_CFLAGS = -Wall -Wstrict-prototypes -fno-strict-aliasing \
-D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \
-D_LARGEFILE64_SOURCE -DTEXT_DOMAIN=\"zfs-linux-user\"
lib_LTLIBRARIES = libzfs.la
-libzfs_la_LDFLAGS = -lm $(LIBSELINUX)
+libzfs_la_LDFLAGS = -lm -ldl $(LIBSELINUX)
libzfs_la_LIBADD = \
$(top_builddir)/lib/libefi/libefi.la \
$(top_builddir)/lib/libuutil/libuutil.la