]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add explicit paths for OSX
authorAlan T. DeKok <aland@freeradius.org>
Sun, 15 May 2022 14:09:41 +0000 (10:09 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 15 May 2022 14:09:41 +0000 (10:09 -0400)
because apparently some of the C compilers aren't built with the
default paths for everything on the system.

scripts/libtool.mk
src/modules/rlm_mschap/configure
src/modules/rlm_mschap/configure.ac
src/modules/rlm_opendirectory/configure
src/modules/rlm_opendirectory/configure.ac

index 9b59d018fff9ba1163fb4f1afa8d5b90a8e79881..5d2032670e50bb11c377a738e1a746bbf8aef89f 100644 (file)
@@ -60,6 +60,11 @@ ifeq "${LIBTOOL}" "JLIBTOOL"
         JLIBTOOL_DEFS += -DTARGET_RANLIB=\"${TARGET_RANLIB}\"
     endif
 
+    # clang on OSX sometimes doesn't know where things are. <sigh>
+    ifeq "$(findstring darwin,$(TARGET_SYSTEM))" "darwin"
+       JLIBTOOL_DEFS += -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
+    endif
+
     # Add a rule to build jlibtool BEFORE any other targets.  This
     # means that we can use it to build the later targets.
     all install: ${JLIBTOOL}
index 44b201f37f997add4504cee12814c085abaa9a2b..c51c7da0f416db20841b55e9725b80f5d9bab6f7 100755 (executable)
@@ -3054,7 +3054,7 @@ smart_prefix=
 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
 
         mschap_sources="$mschap_sources opendir.c"
-        mod_ldflags="-framework DirectoryService"
+        mod_ldflags="-F /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks -framework DirectoryService"
     fi
 
     smart_try_dir="$winbind_include_dir /usr/include/samba-4.0"
index eb9dcdf689503434c762ae1a69ab020a2642525c..ed999eeb07dacb9635d2a6428f04b04ac879419a 100644 (file)
@@ -73,7 +73,7 @@ if test x$with_[]modname != xno; then
     if test "x$ac_cv_header_membership_h" = "xyes"; then
         AC_DEFINE([HAVE_MEMBERSHIP_H],[1],[Build with Apple Open Directory support])
         mschap_sources="$mschap_sources opendir.c"
-        mod_ldflags="-framework DirectoryService"
+        mod_ldflags="-F /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks -framework DirectoryService"
     fi
 
     smart_try_dir="$winbind_include_dir /usr/include/samba-4.0"
index ca2776d9b41944b28f826d8dba43894fdf817e24..22ca2af58d33f003f1d62910a87cbfa504dbcce8 100755 (executable)
@@ -2759,7 +2759,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
-       mod_ldflags="${mod_ldflags} -framework DirectoryService"
+       mod_ldflags="${mod_ldflags} -F /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks -framework DirectoryService"
 
 
 
index 0273c86a6e3520f4edd4294ab592a8268ac558e6..b68e6b1751518cda09a6bb0497689e96e2b8a5da 100644 (file)
@@ -11,7 +11,7 @@ if test x$with_[]modname != xno; then
        AC_PROG_CC
        AC_PROG_CPP
 
-       mod_ldflags="${mod_ldflags} -framework DirectoryService"
+       mod_ldflags="${mod_ldflags} -F /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks -framework DirectoryService"
 
        FR_SMART_CHECK_INCLUDE(membership.h)
        if test "$ac_cv_header_membership_h" != "yes"; then