]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
Bitrot: libresolv needed in at least MacOS/X 10.7 and up
authorViktor Dukhovni <postfix-users@dukhovni.org>
Sun, 10 Jan 2016 08:38:20 +0000 (03:38 -0500)
committerViktor Dukhovni <postfix-users@dukhovni.org>
Sun, 10 Jan 2016 17:18:32 +0000 (12:18 -0500)
Backport from 2.11

postfix/makedefs

index dfec32773ad686d97f6eebb960b1d7d37a53f788..ffea77ed35a81b4323ebe0759bfa964dd3e04bd1 100644 (file)
@@ -479,6 +479,11 @@ ReliantUNIX-?.5.43) SYSTYPE=ReliantUnix543
                     ?.*) CCARGS="$CCARGS -DRESOLVE_H_NEEDS_NAMESER8_COMPAT_H";;
                       *) CCARGS="$CCARGS -DRESOLVE_H_NEEDS_ARPA_NAMESER_COMPAT_H";;
                esac
+               # Darwin 11.x (MacOS X 10.7.x), maybe earlier, needs libresolv.
+               case $RELEASE in
+               ?.*|10.*) ;;
+                      *) SYSLIBS="$SYSLIBS -lresolv";;
+               esac
                # kqueue and/or poll are broken up to and including MacOS X 10.5
                CCARGS="$CCARGS -DNO_KQUEUE"
 #              # Darwin 8.11.1 has kqueue support, but let's play safe