How to change compiler and linker flags

(This might be useful for example for profiling optimization with gprof.)

You need to change the compiler tool definition files available in /config/toolbox//tools/selected/*compiler.xml (* stands for c, cxx and ff77). In steps:

  • change the cxxflags, cppdefines, ... in these files,
  • run scram setup , e.g. scram setup cxxcompiler,
  • cleanup old build: scram build clean,
  • rebuild: scram build .

(Thanks to Shahzad MUZAFFAR.)

-- JanKaspar - 27-Apr-2010

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2010-08-17 - LeszekGrzanka
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    TOTEM All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback