mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Disable -Wl,-z,defs for ASAN builds
Commit af65916
added -Wl,-z,defs for the shared libraries. This
apparently does not work in some cases with --enable-asan, so only add
it for non-ASAN builds.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: João Carlos Mendes Luis <jonny@jonny.eng.br>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10557
Closes #10560
This commit is contained in:
parent
e4d3d77684
commit
5f72109e5b
@ -31,7 +31,11 @@ libnvpair_la_LIBADD = \
|
||||
|
||||
libnvpair_la_LIBADD += $(LIBTIRPC_LIBS) $(LTLIBINTL)
|
||||
|
||||
libnvpair_la_LDFLAGS = -Wl,-z,defs
|
||||
libnvpair_la_LDFLAGS =
|
||||
|
||||
if !ASAN_ENABLED
|
||||
libnvpair_la_LDFLAGS += -Wl,-z,defs
|
||||
endif
|
||||
|
||||
if BUILD_FREEBSD
|
||||
libnvpair_la_LDFLAGS += -version-info 3:0:0
|
||||
|
@ -21,7 +21,11 @@ libuutil_la_LIBADD = \
|
||||
|
||||
libuutil_la_LIBADD += $(LTLIBINTL)
|
||||
|
||||
libuutil_la_LDFLAGS = -pthread -Wl,-z,defs
|
||||
libuutil_la_LDFLAGS = -pthread
|
||||
|
||||
if !ASAN_ENABLED
|
||||
libuutil_la_LDFLAGS += -Wl,-z,defs
|
||||
endif
|
||||
|
||||
if BUILD_FREEBSD
|
||||
libuutil_la_LDFLAGS += -version-info 3:0:0
|
||||
|
@ -76,7 +76,11 @@ libzfs_la_LIBADD = \
|
||||
|
||||
libzfs_la_LIBADD += -lm $(LIBCRYPTO_LIBS) $(ZLIB_LIBS) $(LTLIBINTL)
|
||||
|
||||
libzfs_la_LDFLAGS = -pthread -Wl,-z,defs
|
||||
libzfs_la_LDFLAGS = -pthread
|
||||
|
||||
if !ASAN_ENABLED
|
||||
libzfs_la_LDFLAGS += -Wl,-z,defs
|
||||
endif
|
||||
|
||||
if BUILD_FREEBSD
|
||||
libzfs_la_LIBADD += -lutil -lgeom
|
||||
|
@ -15,7 +15,11 @@ libzfs_core_la_LIBADD = \
|
||||
|
||||
libzfs_core_la_LIBADD += $(LTLIBINTL)
|
||||
|
||||
libzfs_core_la_LDFLAGS = -pthread -Wl,-z,defs
|
||||
libzfs_core_la_LDFLAGS = -pthread
|
||||
|
||||
if !ASAN_ENABLED
|
||||
libzfs_core_la_LDFLAGS += -Wl,-z,defs
|
||||
endif
|
||||
|
||||
if BUILD_FREEBSD
|
||||
libzfs_core_la_LIBADD += -lutil -lgeom
|
||||
|
@ -210,7 +210,11 @@ libzpool_la_LIBADD = \
|
||||
|
||||
libzpool_la_LIBADD += $(LIBCLOCK_GETTIME) $(ZLIB_LIBS) -ldl
|
||||
|
||||
libzpool_la_LDFLAGS = -pthread -Wl,-z,defs
|
||||
libzpool_la_LDFLAGS = -pthread
|
||||
|
||||
if !ASAN_ENABLED
|
||||
libzpool_la_LDFLAGS += -Wl,-z,defs
|
||||
endif
|
||||
|
||||
if BUILD_FREEBSD
|
||||
libzpool_la_LIBADD += -lgeom
|
||||
|
Loading…
Reference in New Issue
Block a user