From 9e51b41b8834a8e9743bd4143ed253ade346423a Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 25 Aug 2011 15:06:36 +0200 Subject: comment on the order of *-linux* vs *-gnu* --- hurd/porting/guidelines.mdwn | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'hurd') diff --git a/hurd/porting/guidelines.mdwn b/hurd/porting/guidelines.mdwn index 0a9c133a..65fb6409 100644 --- a/hurd/porting/guidelines.mdwn +++ b/hurd/porting/guidelines.mdwn @@ -34,7 +34,7 @@ configure.ac thus very often just needs to be fixed by using the same cases as L into switch "$host_os" in - case linux*|k*bsd-gnu|gnu*) + case linux*|k*bsd-gnu*|gnu*) for a host_os case statement, or @@ -44,7 +44,18 @@ for a host_os case statement, or into switch "$host" in - case *-linux*|*-k*bsd-gnu|*-gnu*) + case *-linux*|*-k*bsd-gnu*|*-gnu*) + +If separate case is needed, make sure to put *-gnu* *after* *-linux*: + + switch "$host" in + case *-linux*|*-k*bsd-gnu*) + something;; + + case *-gnu*) + something else;; + +because else *-gnu* would catch i386-pc-linux-gnu for instance... ## Undefined `bits/confname.h` macros (`PIPE_BUF`, ...) -- cgit v1.2.3