OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000487OMNeT++command line toolspublic2011-12-15 13:522011-12-15 13:53
rhornig 
rhornig 
normalminoralways
resolvedfixed 
4.2 
4.2.1 
0000487: Model in shared lib is not linked to an other model built as an executable
When you build an executable that directly links with an other model that was built as a shared lib AND the your model does not refer any symbols in the shared lib model AND you are running on a system with GCC 4.6 then the shared lib will not be linked to the executable model (the linker optimizes it out).
Solution, library references should be prefixed with $AS_NEEDED_OFF (similarily how WHOLE_ARCHIVE_ON s used for static libs) in the generated makefiles. $AS_NEEDED_OFF is used for the same purpose for dynamic libs.
No tags attached.
Issue History
2011-12-15 13:52rhornigNew Issue
2011-12-15 13:53rhornigNote Added: 0000643
2011-12-15 13:53rhornigStatusnew => resolved
2011-12-15 13:53rhornigFixed in Version => 4.2.1
2011-12-15 13:53rhornigResolutionopen => fixed
2011-12-15 13:53rhornigAssigned To => rhornig

Notes
(0000643)
rhornig   
2011-12-15 13:53   
Added $AS_NEEDED_OFF to the makefile generator scripts.