]> 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>
Thu, 26 May 2016 04:43:52 +0000 (00:43 -0400)
postfix/makedefs

index 88562c9dda797c9b1fd09513d7921121abde7128..9f2754078d070112f3ccafab7d50e0de0c9aad73 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