Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux.gentoo    |    Stupid OS you gotta compile EVERYTHING    |    17,684 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 16,241 of 17,684    |
|    Nikos Chantziaras to All    |
|    Appending switches to CXXFLAGS in an ebu    |
|    10 Apr 08 20:08:57    |
      From: realnc@arcor.de              I want to append switches to CXXFLAGS but not in CFLAGS. This:               append-flags "-fno-strict-aliasing -fno-rtti -fno-exceptions"              will append those switches to both CFLAGS as well as CXXFLAGS, which I       don't want. Any solution?              PS:       The first switch (-fno-strict-aliasing) is needed; the C++ part of the       program segfaults otherwise on some systems with -O2 and higher (not on       mine though, but I want to contribute the ebuild). It's safe with -O1       (even when using "-O1 -fstrict-aliasing); probably a compiler bug, not       sure. The C part of the program isn't affected so this switch isn't       needed in CFLAGS.              The other flags are just to "optimize" a bit; the package doesn't use       RTTI nor exceptions so I think it's a good idea to use those flags for a       slightly smaller runtime. Those flags are never in the global CXXFLAGS       since they simply break packages that do use RTTI and exceptions.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca