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:
Joao Carlos Mendes Luis
2020-07-14 16:17:44 -03:00
committed by GitHub
parent e4d3d77684
commit 5f72109e5b
5 changed files with 25 additions and 5 deletions
+5 -1
View File
@@ -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