From: Debian Science Team Date: Wed, 20 May 2020 14:42:23 +0000 (+0100) Subject: Ensure that kfreebsd-* is detected as FreeBSD X-Git-Tag: archive/raspbian/3.10.3-10+rpi1^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=13a5bbddf1c8b03a7ce1856158a1983d1c618dd8;p=atlas.git Ensure that kfreebsd-* is detected as FreeBSD Forwarded: https://sourceforge.net/p/math-atlas/patches/19/ Applied-Upstream: 3.10.4 Last-Update: 2017-08-28 The "GNU" test is moved at the end, otherwise kfreebsd is recognized as Linux. This is necessary in order to have correct linker flags. Last-Update: 2017-08-28 Gbp-Pq: Name kfreebsd.patch --- diff --git a/CONFIG/src/probe_OS.c b/CONFIG/src/probe_OS.c index 1bdde49..63dd98a 100644 --- a/CONFIG/src/probe_OS.c +++ b/CONFIG/src/probe_OS.c @@ -18,11 +18,7 @@ enum OSTYPE ProbeOS(int verb, char *targ) res = atlsys_1L(targ, cmnd, verb, 0); if (res) { -/* - * Accept GNU (HURD) as Linux, since they seem to use same stuff; - * This is patch from Sylvestre Ledru; I have no direct experience wt HURD - */ - if(strstr(res, "Linux") || strstr(res, "GNU")) OS = OSLinux; + if(strstr(res, "Linux")) OS = OSLinux; else if(strstr(res, "FreeBSD")) OS = OSFreeBSD; else if (strstr(res, "Darwin")) OS = OSOSX; else if(strstr(res, "SunOS")) @@ -59,6 +55,11 @@ enum OSTYPE ProbeOS(int verb, char *targ) else ierr = 1; } else if (strstr(res, "HP-UX")) OS = OSHPUX; +/* + * Accept GNU (HURD) as Linux, since they seem to use same stuff; + * This is patch from Sylvestre Ledru; I have no direct experience wt HURD + */ + else if(strstr(res, "GNU")) OS = OSLinux; else ierr = 1; free(res); }