fix build error on macos

This commit is contained in:
hqwrong 2018-03-22 17:35:44 +08:00
parent 9706d9a0f0
commit eb6b602095
No known key found for this signature in database
GPG Key ID: 9E1257FC660267A3

View File

@ -184,7 +184,11 @@ if(ASAN)
else() else()
# Forbid undefined symbols in shared libraries. This is incompatible with # Forbid undefined symbols in shared libraries. This is incompatible with
# asan, so it's in the else branch here. # asan, so it's in the else branch here.
add_dllflag("-Wl,-z,defs") if(APPLE)
add_dllflag("-undefined error")
else()
add_dllflag("-Wl,-z,defs")
endif()
endif() endif()
option(USE_IPV6 "Use IPv6 in tests" ON) option(USE_IPV6 "Use IPv6 in tests" ON)