]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Set macosx-version-min to be the current version
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 1 Oct 2021 13:27:41 +0000 (08:27 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 1 Oct 2021 13:27:41 +0000 (08:27 -0500)
configure
configure.ac

index aee0df68cff069c003544a98f104274f54cc577c..120dfbad0b0601144c3b6a26d7711accba6482f1 100755 (executable)
--- a/configure
+++ b/configure
@@ -11322,7 +11322,8 @@ case "$target" in
     CFLAGS="$CFLAGS -D_ALL_SOURCE"
     ;;
   *-darwin*)
-    CFLAGS="$CFLAGS -DDARWIN"
+    CFLAGS="$CFLAGS -DDARWIN -mmacosx-version-min=$(sw_vers -productVersion)"
+    LDFLAGS="$LDFLAGS -mmacosx-version-min=$(sw_vers -productVersion)"
     LIBS="-framework DirectoryService $LIBS"
 
 printf "%s\n" "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
index 142774b86d615fc04dc694bbd3706435eaee74cf..1fbab0e3d60109cef8d979ea51d040a33f0a4ef9 100644 (file)
@@ -1160,7 +1160,8 @@ case "$target" in
     CFLAGS="$CFLAGS -D_ALL_SOURCE"
     ;;
   *-darwin*)
-    CFLAGS="$CFLAGS -DDARWIN"
+    CFLAGS="$CFLAGS -DDARWIN -mmacosx-version-min=$(sw_vers -productVersion)"
+    LDFLAGS="$LDFLAGS -mmacosx-version-min=$(sw_vers -productVersion)"
     LIBS="-framework DirectoryService $LIBS"
     AC_DEFINE([__APPLE_USE_RFC_3542], 1, [Force OSX >= 10.7 Lion to use RFC2292 IPv6 socket options])
     ;;