]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
backport MacOS link flags
authorMark Andrews <marka@isc.org>
Wed, 20 Mar 2019 01:19:33 +0000 (12:19 +1100)
committerMark Andrews <marka@isc.org>
Tue, 26 Mar 2019 09:51:00 +0000 (05:51 -0400)
configure
configure.ac

index 8715961d77ddbfd6c3cf3ac1a76f8257f56f4830..47ddb774429e663853d4c7e736828e57022803c8 100755 (executable)
--- a/configure
+++ b/configure
@@ -23772,6 +23772,15 @@ if test "yes" = "$dlopen"; then
                                SO_LD="${CC}"
                        fi
                        ;;
+               *-darwin*)
+                       SO_CFLAGS="-fPIC"
+                       SO_LD="${CC}"
+                       if test "yes" = "$use_libtool"; then
+                               SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
+                       else
+                               SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
+                       fi
+                       ;;
                *-netbsd*)
                        SO_CFLAGS="-fpic"
                        SO_LDFLAGS="-Bshareable -x"
index ce2b0ab1094b80ad629f19c87657b82024558962..b7a9b17437e01925bcc88251fdcdd8cc5e57432d 100644 (file)
@@ -5111,6 +5111,15 @@ if test "yes" = "$dlopen"; then
                                SO_LD="${CC}"
                        fi
                        ;;
+               *-darwin*)
+                       SO_CFLAGS="-fPIC"
+                       SO_LD="${CC}"
+                       if test "yes" = "$use_libtool"; then
+                               SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
+                       else
+                               SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
+                       fi
+                       ;;
                *-netbsd*)
                        SO_CFLAGS="-fpic"
                        SO_LDFLAGS="-Bshareable -x"