diff options
Diffstat (limited to 'hurd/porting')
-rw-r--r-- | hurd/porting/guidelines.mdwn | 15 |
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> |