View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008107CMakeCMakepublic2008-11-17 09:492009-02-27 13:00
ReporterTorsten Maehne 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0008107: CMake 2.6.2 adds -D<libname>_EXPORTS option to <language>_FLAGS instead of <language>_DEFINES
DescriptionCMake 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.
TagsNo tags attached.
Attached Filesgz file icon asm-att_so_test.tar.gz [^] (1,278 bytes) 2008-11-17 09:49

 Relationships

  Notes
(0015458)
Brad King (manager)
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 (manager)
2009-02-27 13:00

I've scheduled this for 2.6.4.

 Issue History
Date Modified Username Field Change
2008-11-17 09:49 Torsten Maehne New Issue
2008-11-17 09:49 Torsten Maehne File Added: asm-att_so_test.tar.gz
2009-01-29 11:49 Bill Hoffman Status new => assigned
2009-01-29 11:49 Bill Hoffman Assigned To => Alex Neundorf
2009-02-27 12:59 Brad King Assigned To Alex Neundorf => Brad King
2009-02-27 13:00 Brad King Note Added: 0015458
2009-02-27 13:00 Brad King Note Added: 0015459
2009-02-27 13:00 Brad King Status assigned => closed
2009-02-27 13:00 Brad King Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team