View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0008107 | CMake | CMake | public | 2008-11-17 09:49 | 2009-02-27 13:00 | ||||
Reporter | Torsten Maehne | ||||||||
Assigned To | Brad King | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake-2-6 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0008107: CMake 2.6.2 adds -D<libname>_EXPORTS option to <language>_FLAGS instead of <language>_DEFINES | ||||||||
Description | 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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | asm-att_so_test.tar.gz [^] (1,278 bytes) 2008-11-17 09:49 | ||||||||
Relationships | |
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. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |