]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
MacOSX needs libresolv at least since 10.8, probably much longer ago.
authorViktor Dukhovni <postfix-users@dukhovni.org>
Mon, 1 Apr 2013 03:04:44 +0000 (23:04 -0400)
committerViktor Dukhovni <postfix-users@dukhovni.org>
Sat, 6 Apr 2013 03:31:58 +0000 (23:31 -0400)
postfix/makedefs

index 169a054c6049c2b64a96387243adcac3df7182fb..15edabcd1daea71d798806a75f564e71a531fb91 100644 (file)
@@ -462,10 +462,12 @@ ReliantUNIX-?.5.43) SYSTYPE=ReliantUnix543
                : ${CC=cc}
                CCARGS="$CCARGS \$(WARN)"
                # Darwin > 1.3 uses awk and flat_namespace
+               # MacOS X 10.8.x (Darwin 12.x) needs libresolv, likely much
+               # older earlier also, but I don't have access to test systems.
                case $RELEASE in
                 1.[0-3]) AWK=gawk;;
-                      *) AWK=awk
-                         SYSLIBS=-flat_namespace;;
+                ?.*|1[0-1].*) AWK=awk; SYSLIBS="-flat_namespace";;
+                *) AWK=awk; SYSLIBS="-lresolv -flat_namespace";;
                esac
                # Darwin 7 adds IPv6 support, BIND_8_COMPAT, NO_NETINFO
                case $RELEASE in