Commit 115736b3 authored by Evan Hunt's avatar Evan Hunt
Browse files

fix shared library build on darwin

parent 5e2cd913
Pipeline #7720 canceled with stages
in 20 seconds
...@@ -20269,6 +20269,20 @@ else ...@@ -20269,6 +20269,20 @@ else
SO_LDFLAGS="-shared" SO_LDFLAGS="-shared"
SO_LD="${CC}" 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 fi
;; #( ;; #(
*-solaris*) : *-solaris*) :
......
...@@ -2660,6 +2660,15 @@ AS_IF([test "$with_dlopen" = "yes"], ...@@ -2660,6 +2660,15 @@ AS_IF([test "$with_dlopen" = "yes"],
SO_LD="${CC}" 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*],[ [*-solaris*],[
SO_CFLAGS="-KPIC" SO_CFLAGS="-KPIC"
SO_LDFLAGS="-G -z text" SO_LDFLAGS="-G -z text"
...@@ -2947,8 +2956,8 @@ AC_CONFIG_COMMANDS( ...@@ -2947,8 +2956,8 @@ AC_CONFIG_COMMANDS(
# #
AC_CONFIG_FILES([ AC_CONFIG_FILES([
make/Makefile make/Makefile
make/mkdep make/mkdep
Makefile Makefile
bin/Makefile bin/Makefile
bin/check/Makefile bin/check/Makefile
......
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