MantisBT - CMake
View Issue Details
0008107CMakeCMakepublic2008-11-17 09:492009-02-27 13:00
Torsten Maehne 
Brad King 
normalmajoralways
closedfixed 
CMake-2-6 
 
0008107: CMake 2.6.2 adds -D<libname>_EXPORTS option to <language>_FLAGS instead of <language>_DEFINES
CMake 2.6.2 defines automatically the <libname>_EXPORTS macro for each added library. It passes it to all sources (including assembler files) belonging to the library using the <language>_FLAGS variable instead the
<language>_DEFINES variable. However, this breaks the ASM-ATT language
support for shared object libraries as the "as" command doesn't
support the -D option. The build process aborts thus with the
following error:

/usr/bin/as: unrecognized option `-<libname>_EXPORTS`

By moving the offending option from the ASM-ATT_FLAGS to the
ASM-ATT_DEFINES variable, the problem disappears and the project
compiles correctly. The problem is demonstrated with the attached test case.
No tags attached.
gz asm-att_so_test.tar.gz (1,278) 2008-11-17 09:49
https://public.kitware.com/Bug/file/1847/asm-att_so_test.tar.gz
Issue History
2008-11-17 09:49Torsten MaehneNew Issue
2008-11-17 09:49Torsten MaehneFile Added: asm-att_so_test.tar.gz
2009-01-29 11:49Bill HoffmanStatusnew => assigned
2009-01-29 11:49Bill HoffmanAssigned To => Alex Neundorf
2009-02-27 12:59Brad KingAssigned ToAlex Neundorf => Brad King
2009-02-27 13:00Brad KingNote Added: 0015458
2009-02-27 13:00Brad KingNote Added: 0015459
2009-02-27 13:00Brad KingStatusassigned => closed
2009-02-27 13:00Brad KingResolutionopen => fixed

Notes
(0015458)
Brad King   
2009-02-27 13:00   
BUG: Pass shared library export symbol in DEFINES
/cvsroot/CMake/CMake/Source/cmMakefileTargetGenerator.cxx,v <-- Source/cmMakefileTargetGenerator.cxx
new revision: 1.115; previous revision: 1.114
(0015459)
Brad King   
2009-02-27 13:00   
I've scheduled this for 2.6.4.