Commit 0c0536a1 authored by Evan Hunt's avatar Evan Hunt
Browse files

Merge branch 'each-fix-macos-build' into 'master'

fix shared library build on darwin

See merge request !1197
parents 5e2cd913 115736b3
Pipeline #7721 passed with stages
in 15 minutes and 18 seconds
......@@ -20269,6 +20269,20 @@ else
SO_LDFLAGS="-shared"
SO_LD="${CC}"
 
fi
;; #(
*-darwin*) :
SO_CFLAGS="-fPIC"
SO_LD="${CC}"
if test "$use_libtool" = "yes"; then :
SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
else
SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
fi
;; #(
*-solaris*) :
......
......@@ -2660,6 +2660,15 @@ AS_IF([test "$with_dlopen" = "yes"],
SO_LD="${CC}"
])
],
[*-darwin*],[
SO_CFLAGS="-fPIC"
SO_LD="${CC}"
AS_IF([test "$use_libtool" = "yes"],[
SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
],[
SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
])
],
[*-solaris*],[
SO_CFLAGS="-KPIC"
SO_LDFLAGS="-G -z text"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment