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/libzfs_core/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/libzfs_core/Makefile.am')
-rw-r--r-- | lib/libzfs_core/Makefile.am | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libzfs_core/Makefile.am b/lib/libzfs_core/Makefile.am index 94a10e399..e94ba85d2 100644 --- a/lib/libzfs_core/Makefile.am +++ b/lib/libzfs_core/Makefile.am @@ -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 |