Define PLATFORM_GNU which covers any OS with GNU userland.
authorJo Shields <jo.shields@xamarin.com>
Thu, 31 Jul 2014 11:04:59 +0000 (12:04 +0100)
committerJo Shields <jo.shields@xamarin.com>
Thu, 31 Jul 2014 11:04:59 +0000 (12:04 +0100)
This define covers kFreeBSD, not just Linux. This is required because
the error which 120d194d10ad351dd95450749cc4a62331331d8a works around is
a GNU problem, not a Linux problem, so causes FTBFS on kFreeBSD.

configure.ac
mono/unit-tests/Makefile.am

index 4eab51a9b11b76fad11e1b98289f0e1b97b7c932..fca6e12f80912aea50a8869a101688c8d56a0c2f 100644 (file)
@@ -368,6 +368,7 @@ fi
 AC_SUBST(extra_runtime_ldflags)
 AM_CONDITIONAL(HOST_WIN32, test x$host_win32 = xyes)
 AM_CONDITIONAL(TARGET_WIN32, test x$target_win32 = xyes)
+AM_CONDITIONAL(PLATFORM_GNU, echo x$target_os | grep -q -- -gnu$)
 AM_CONDITIONAL(PLATFORM_LINUX, echo x$target_os | grep -q linux)
 AM_CONDITIONAL(PLATFORM_DARWIN, test x$platform_darwin = xyes)
 AM_CONDITIONAL(PLATFORM_SIGPOSIX, test x$use_sigposix = xyes)
index e7f2ddb10bf5d6ff4453efa46a26c16d5542d9fc..23797f64633078f2982335abc71e2341cab33041 100644 (file)
@@ -11,7 +11,7 @@ endif
 if !CROSS_COMPILE
 if !HOST_WIN32
 if SUPPORT_BOEHM
-if !PLATFORM_LINUX
+if !PLATFORM_GNU
 
 test_sgen_qsort_SOURCES = test-sgen-qsort.c
 test_sgen_qsort_CFLAGS = $(TEST_CFLAGS)
@@ -37,7 +37,7 @@ noinst_PROGRAMS = test-sgen-qsort test-gc-memfuncs test-mono-linked-list-set tes
 
 TESTS = test-sgen-qsort test-gc-memfuncs test-mono-linked-list-set test-conc-hashtable
 
-endif !PLATFORM_LINUX
+endif !PLATFORM_GNU
 endif SUPPORT_BOEHM
 endif !HOST_WIN32
 endif !CROSS_COMPILE