Subject: Re: pkg/37200: devel/glib2 fails on Solaris 5.9 due to compiler flags in sunpro.mk
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Bernd Ernesti <veego@NetBSD.org>
List: pkgsrc-bugs
Date: 10/25/2007 07:40:06
The following reply was made to PR pkg/37200; it has been noted by GNATS.

From: Bernd Ernesti <veego@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/37200: devel/glib2 fails on Solaris 5.9 due to compiler flags in sunpro.mk
Date: Thu, 25 Oct 2007 09:36:23 +0200

 On Wed, Oct 24, 2007 at 09:35:00PM +0000, uli@habel.name wrote:
 [..]
 
 > config.log shows the following problem:
 > 
 > configure:3105: gcc -V >&5
 > cc: Sun C 5.8 Patch 121015-05 2007/08/01
 [..]
 
 > cc: -xc99=lib is not available on SunOS 5.9
 
 Where does the '=lib' part come from?
 I can't find that part.
 
 > Further investigation showed that the flag "-xc99" for the sunpro compiler is not available on SunOS 5.9 (as stated above), however "-xc99=no_lib" would be a supported option to exclude libraries. The other choice would be "all" which is the default if this flag has been set.
 
 The manpage says '-xc99[=o]' which sounds like for me that you don't need to use an option.
 
 IMHO it may depends on the installed compiler and not the operating system.
 At least 5.4 and 5.9 both have the same options on there manpage, so I fail to see
 why 5.8 should not have it.
 
 Sure, -xc99=lib is not supported, by where does that come from?
 
 Bernd