OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000427OMNeT++IDE / C++ developmentpublic2011-11-02 13:322012-01-09 17:57
normalfeaturehave not tried
resolvedwon't fix 
0000427: possibility to add gcc options for the release build
it would be nice if the release build options could be extended/changed. Maybe someone would be release build with -O3 or want to add -march=... -mtune= -sse or other options.
No tags attached.
Issue History
2011-11-02 13:32michaelNew Issue
2011-11-02 14:08rhornigNote Added: 0000581
2011-11-02 16:01michaelNote Added: 0000582
2011-12-15 14:14rhornigNote Added: 0000645
2011-12-15 14:16rhornigNote Edited: 0000645
2012-01-09 17:57rhornigNote Added: 0000674
2012-01-09 17:57rhornigStatusnew => resolved
2012-01-09 17:57rhornigResolutionopen => won't fix
2012-01-09 17:57rhornigAssigned To => rhornig

2011-11-02 14:08   
You can do that by specifying your CFLAGS_RELEASE options in the configure.user and then re-running ./configure...

With the above defaults we just want to remain on the 'safe side' to be able to build omnet on all architectures and platforms.
2011-11-02 16:01   
I does not mean the OMNeT build, I mean custom projects which are build with OMNeT and I searched options on project scope not on global scope.

There are also flags like -pg (gcc profiler) or if I want to use OpenMP (-fopenmp), theses flags should not set on global scope!
2011-12-15 14:14   
(edited on: 2011-12-15 14:16)
It is a bit hard to create a good UI for this, because some project options would collide with system (omnet) level options. I.e. omnet specifies -O2 in CFLAGS_RELEASE and you would add -O3. I.e. you should be able add new and remove+modify existing flags from CFLAGS and LDFLAGS.

You can do this now by adding your makefile fragments to the makefrags file. You have complete control over the CFLAGS/LDFLAGS variable there.

But perhaps it is better to set these values at system level and recompile omnet. If you use flags specific to your architecture (or compiler), omnet libraries would benefit from this too.

2012-01-09 17:57   
These options should be specified in the makefrags file. All project level makefile variables can be manipulated here.