Merge commit '81bffae368f331b6cd386a814f225a58e3f32f40'
authorJames Almer <jamrial@gmail.com>
Tue, 17 Oct 2017 18:14:10 +0000 (15:14 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 17 Oct 2017 18:14:10 +0000 (15:14 -0300)
* commit '81bffae368f331b6cd386a814f225a58e3f32f40':
  configure: Check for -no_weak_imports in ldflags on macOS

Merged-by: James Almer <jamrial@gmail.com>
configure

index 6e7faf55b6877b56a49513e81d28e68248fcbddc..62c185586dca31b10600d34e9cd7f9fb3d40a497 100755 (executable)
--- a/configure
+++ b/configure
@@ -5032,6 +5032,7 @@ case $target_os in
         enabled x86_32 && append SHFLAGS -Wl,-read_only_relocs,suppress
         strip="${strip} -x"
         add_ldflags -Wl,-dynamic,-search_paths_first
+        check_ldflags -Wl,-no_weak_imports
         SLIBSUF=".dylib"
         SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME).$(LIBVERSION)$(SLIBSUF)'
         SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)'