GNOME Bugzilla – Bug 335240
Wrong compiler options on Solaris using Sun's C compiler
Last modified: 2006-04-01 22:15:28 UTC
Please describe the problem: The configure script wrongly assumes that the compiler understands -std=c9x and -fno-strict-aliasing options: checking whether cc-wrapper understands -Wall... no checking whether cc-wrapper understands -std=c9x... yes checking whether cc-wrapper understands -fno-strict-aliasing... yes This results in compiler warnings such as: cc: Warning: illegal option -d=c9x cc: Warning: illegal option -fno-strict-aliasing Not a big issue, just wanted to let you know. It compiles and works just fine. FWIW, this was Sun Studio 9, Sun C 5.6 2004/07/15 Steps to reproduce: 1. compile pygtk on a solaris box using Sun's C compiler Actual results: Expected results: Does this happen every time? Other information:
I checked JH_ADD_CFLAG and it is correct. It uses AC_TRY_COMPILE from autoconf, which could be where the bug is.