diff options
author | Joao Carlos Mendes Luis <[email protected]> | 2020-07-14 16:17:44 -0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-14 12:17:44 -0700 |
commit | 5f72109e5bd84124bd6dd9877fae3fa9ae7ee348 (patch) | |
tree | f0e26e628f2803f050fafe9475ea29466849288a /lib/libzpool/Makefile.am | |
parent | e4d3d776844fd9c53b4bb641e21a7eff62052dca (diff) |
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 <[email protected]>
Reviewed-by: João Carlos Mendes Luis <[email protected]>
Signed-off-by: Arvind Sankar <[email protected]>
Closes #10557
Closes #10560
Diffstat (limited to 'lib/libzpool/Makefile.am')
-rw-r--r-- | lib/libzpool/Makefile.am | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libzpool/Makefile.am b/lib/libzpool/Makefile.am index 7924a425d..50658bc67 100644 --- a/lib/libzpool/Makefile.am +++ b/lib/libzpool/Makefile.am @@ -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 |