MantisBT - CMake | |||||
View Issue Details | |||||
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. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | 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 | |||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|