summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-08-25 15:06:36 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-08-25 15:06:36 +0200
commit9e51b41b8834a8e9743bd4143ed253ade346423a (patch)
treedad977c34e361d7ddd4c82bfef670e211ebba314 /hurd
parente20e18023429506098a0517ad608cf74c9410a41 (diff)
comment on the order of *-linux* vs *-gnu*
Diffstat (limited to 'hurd')
-rw-r--r--hurd/porting/guidelines.mdwn15
1 files changed, 13 insertions, 2 deletions
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...
## <a name="Undefined_bits_confname_h_tt_mac"> Undefined `bits/confname.h` macros (`PIPE_BUF`, ...) </a>