uname(1) on UnixWare (Solaris)

Bang Jun-Young bjy at mogua.org
Tue Jun 5 00:06:30 CDT 2001

On Mon, Jun 04, 2001 at 08:06:44PM -0700, Alexandre Julliard wrote:
> Why do you need that?  Using uname(1) in a configure script is almost
> certainly the wrong thing to do.

There are some reasons for that:

1. Configure message is wrong:
   checking whether we can build a Linux dll... yes
   I see this even on FreeBSD and NetBSD. :( It's not a Linux dll, 
   but an FreeBSD/NetBSD dll.

2. Linux/FreeBSD/NetBSD running on x86 are all based on ELF, so
   replacing 'Linux' with 'ELF' would be more appropriate. The 
   problem is, however, they have slightly different linker flags 
   for building shared libraries. For example, giving -Bsymbolic
   when compiling sources on NetBSD causes an error even though 
   compiler/linker toolchain is almost same as one used in Linux.
   It's due to different startup code, but unfortunately, I
   have no idea how to detect it during configure process without
   help from uname. 

3. IMHO, my modification is more readable than existing code. 


Bang Jun-Young <bjy at mogua.org>

More information about the wine-devel mailing list