Add -z defs to LDFLAGS
This will make sure the installed libraries are linked with everything they require. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Closes #10538
This commit is contained in:
parent
1537105a8c
commit
af65916226
|
@ -31,8 +31,10 @@ libnvpair_la_LIBADD = \
|
|||
|
||||
libnvpair_la_LIBADD += $(LIBTIRPC_LIBS) $(LTLIBINTL)
|
||||
|
||||
libnvpair_la_LDFLAGS = -Wl,-z,defs
|
||||
|
||||
if BUILD_FREEBSD
|
||||
libnvpair_la_LDFLAGS = -version-info 3:0:0
|
||||
libnvpair_la_LDFLAGS += -version-info 3:0:0
|
||||
else
|
||||
libnvpair_la_LDFLAGS = -version-info 1:1:0
|
||||
libnvpair_la_LDFLAGS += -version-info 1:1:0
|
||||
endif
|
||||
|
|
|
@ -21,7 +21,7 @@ libuutil_la_LIBADD = \
|
|||
|
||||
libuutil_la_LIBADD += $(LTLIBINTL)
|
||||
|
||||
libuutil_la_LDFLAGS = -pthread
|
||||
libuutil_la_LDFLAGS = -pthread -Wl,-z,defs
|
||||
|
||||
if BUILD_FREEBSD
|
||||
libuutil_la_LDFLAGS += -version-info 3:0:0
|
||||
|
|
|
@ -83,7 +83,7 @@ libzfs_la_LIBADD += \
|
|||
|
||||
libzfs_la_LIBADD += -lm $(LIBCRYPTO_LIBS) $(ZLIB_LIBS) $(LTLIBINTL)
|
||||
|
||||
libzfs_la_LDFLAGS = -pthread
|
||||
libzfs_la_LDFLAGS = -pthread -Wl,-z,defs
|
||||
|
||||
if BUILD_FREEBSD
|
||||
libzfs_la_LIBADD += -lutil -lgeom
|
||||
|
|
|
@ -15,7 +15,7 @@ libzfs_core_la_LIBADD = \
|
|||
|
||||
libzfs_core_la_LIBADD += $(LTLIBINTL)
|
||||
|
||||
libzfs_core_la_LDFLAGS = -pthread
|
||||
libzfs_core_la_LDFLAGS = -pthread -Wl,-z,defs
|
||||
|
||||
if BUILD_FREEBSD
|
||||
libzfs_core_la_LIBADD += -lutil -lgeom
|
||||
|
|
|
@ -207,7 +207,7 @@ libzpool_la_LIBADD = \
|
|||
|
||||
libzpool_la_LIBADD += $(LIBCLOCK_GETTIME) $(ZLIB_LIBS) -ldl
|
||||
|
||||
libzpool_la_LDFLAGS = -pthread
|
||||
libzpool_la_LDFLAGS = -pthread -Wl,-z,defs
|
||||
|
||||
if BUILD_FREEBSD
|
||||
libzpool_la_LIBADD += -lgeom
|
||||
|
|
Loading…
Reference in New Issue