[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Detecting kfreebsd kernel while compiling [hurd]



Joachim Wiedorn scrisse:

> But I don't now how can I specify a GNU/Hurd (with mach-Kernel)
> system (hurd-i386), which is still an unofficial port of Debian. I
> have only tried 'defined (__hurd__)' which does not work.
> 
> I think if I say 'defined (__GNU__)' this is always the same an ALL
> Debian systems because Debian alsways use GNU-OS.
> 
> Perhaps it could be (HURD) or (__hurd) or (__HURD) ?
> It seems I must install an hurd system to can test it - not easy.

>From our hurd-i386 porterbox:

lucab@strauss:~$ echo | gcc -g3 -E - | grep -i hurd
#define __gnu_hurd__ 1
lucab@strauss:~$ echo | gcc -g3 -E - | grep -i gnu 
#define __GNUC__ 4
#define __GNUC_MINOR__ 4
#define __GNUC_PATCHLEVEL__ 3
#define __GNUC_GNU_INLINE__ 1
#define __gnu_hurd__ 1
#define __GNU__ 1
lucab@strauss:~$ echo | gcc -g3 -E - | grep -i mach
#define __MACH 1
#define __MACH__ 1
#define MACH 1

Ciao, Luca

-- 
 .''`.  ** Debian GNU/Linux **  | Luca Bruno (kaeso)
: :'  :   The Universal O.S.    | lucab (AT) debian.org
`. `'`  			| GPG Key ID: 3BFB9FB3
  `-     http://www.debian.org 	| Debian GNU/Linux Developer

Attachment: pgpjc97mjZoWp.pgp
Description: PGP signature


Reply to: