Changeset View
Changeset View
Standalone View
Standalone View
lang/mono/files/patch-configure.ac
--- configure.ac.orig 2017-07-20 18:10:59 UTC | --- configure.ac.orig 2018-01-10 08:03:25 UTC | ||||
+++ configure.ac | +++ configure.ac | ||||
@@ -385,6 +385,7 @@ AC_SUBST(extra_runtime_ldflags) | @@ -179,6 +179,7 @@ case "$host" in | ||||
with_sgen_default_concurrent=yes | |||||
;; | |||||
*-*-*freebsd*) | |||||
+ host_freebsd=yes | |||||
if test "x$PTHREAD_CFLAGS" = "x"; then | |||||
CPPFLAGS="$CPPFLAGS -DGC_FREEBSD_THREADS" | |||||
libmono_cflags= | |||||
@@ -397,6 +398,7 @@ AC_SUBST(extra_runtime_ldflags) | |||||
AM_CONDITIONAL(HOST_WIN32, test x$host_win32 = xyes) | AM_CONDITIONAL(HOST_WIN32, test x$host_win32 = xyes) | ||||
AM_CONDITIONAL(TARGET_WIN32, test x$target_win32 = xyes) | AM_CONDITIONAL(TARGET_WIN32, test x$target_win32 = xyes) | ||||
AM_CONDITIONAL(PLATFORM_LINUX, echo x$target_os | grep -q linux) | AM_CONDITIONAL(HOST_LINUX, echo x$target_os | grep -q linux) | ||||
+AM_CONDITIONAL(PLATFORM_FREEBSD, echo x$target_os | grep -q freebsd) | +AM_CONDITIONAL(HOST_FREEBSD, echo x$target_os | grep -q freebsd) | ||||
AM_CONDITIONAL(PLATFORM_DARWIN, test x$host_darwin = xyes) | AM_CONDITIONAL(HOST_DARWIN, test x$host_darwin = xyes) | ||||
AM_CONDITIONAL(PLATFORM_SIGPOSIX, test x$use_sigposix = xyes) | AM_CONDITIONAL(HOST_SIGPOSIX, test x$use_sigposix = xyes) | ||||
AM_CONDITIONAL(PLATFORM_ANDROID, test x$platform_android = xyes) | AM_CONDITIONAL(HOST_ANDROID, test x$platform_android = xyes) | ||||
@@ -393,7 +394,7 @@ if test -z "$PLATFORM_DARWIN_TRUE"; then | @@ -405,7 +407,7 @@ if test -z "$HOST_DARWIN_TRUE"; then : | ||||
PLATFORM_AOT_SUFFIX=.dylib | PLATFORM_AOT_SUFFIX=.dylib | ||||
fi | fi | ||||
-if test -z "$PLATFORM_LINUX_TRUE"; then : | -if test -z "$HOST_LINUX_TRUE"; then : | ||||
+if test -z "$PLATFORM_LINUX_TRUE" -o -z "$PLATFORM_FREEBSD_TRUE"; then : | +if test -z "$HOST_LINUX_TRUE" -o -z "$HOST_FREEBSD_TRUE"; then : | ||||
PLATFORM_AOT_SUFFIX=.so | PLATFORM_AOT_SUFFIX=.so | ||||
fi | fi | ||||
@@ -4780,6 +4782,8 @@ fi | |||||
echo "BUILD_PLATFORM = darwin" >> $mcs_topdir/build/config.make | |||||
elif test x$host_win32 = xyes; then | |||||
echo "BUILD_PLATFORM = win32" >> $mcs_topdir/build/config.make | |||||
+ elif test x$host_freebsd = xyes; then | |||||
+ echo "BUILD_PLATFORM = freebsd" >> $mcs_topdir/build/config.make | |||||
else | |||||
echo "BUILD_PLATFORM = linux" >> $mcs_topdir/build/config.make | |||||
fi | |||||
@@ -4788,6 +4792,8 @@ fi | |||||
echo "HOST_PLATFORM ?= darwin" >> $mcs_topdir/build/config.make | |||||
elif test x$host_win32 = xyes; then | |||||
echo "HOST_PLATFORM ?= win32" >> $mcs_topdir/build/config.make | |||||
+ elif test x$host_freebsd = xyes; then | |||||
+ echo "HOST_PLATFORM ?= freebsd" >> $mcs_topdir/build/config.make | |||||
else | |||||
echo "HOST_PLATFORM ?= linux" >> $mcs_topdir/build/config.make | |||||
fi |