[Top][All Lists]

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

flag issue in AC_PROG_CXX for Sun Studio

From: Monty Taylor
Subject: flag issue in AC_PROG_CXX for Sun Studio
Date: Thu, 30 Jul 2009 12:28:55 -0700
User-agent: Thunderbird (X11/20090608)

Hey all,

The ever helpful setting of -g into CXXFLAGS by AC_PROG_CXX is incorrect
on Sun Studio (IMHO). Currently, the test checks for Sun Studio compiler
and, if so, injects -g. The problem is, -g on Sun Studio means "include
symbols _AND_ disable inlining" The appropriate flag that's similar to
-g on GCC is -g0. (Thanks Sun Studio, for being weird)

Note, this is only the case with Sun Studio C++ .. Sun Studio C treats
-g as one would expect.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]