By default, Bugzilla does not search the list of RESOLVED bugs.You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
| Summary: |
Change to use portable way to generate PIC code for static lib in TDEMacros.cmake |
| Product: |
TDE
|
Reporter: |
OBATA Akio <obache> |
| Component: |
other (any) | Assignee: |
Timothy Pearson <kb9vqf> |
| Status: |
RESOLVED
FIXED
|
|
|
| Severity: |
normal
|
CC: |
bugwatch, slavek.banko
|
| Priority: |
P5
|
|
|
| Version: |
R14.1.x [Trinity] | |
|
| Hardware: |
Other | |
|
| OS: |
All | |
|
|
Compiler Version:
|
|
TDE Version String:
|
|
|
Application Version:
|
|
Application Name:
|
|
| Bug Depends on: |
|
|
|
| Bug Blocks: |
2885
|
|
|
In cmake/modules/TDEMacros.cmake: # set -fPIC flag for static libraries if( _static_pic ) set_target_properties( ${_target} PROPERTIES COMPILE_FLAGS -fPIC ) endif( _static_pic ) manually set -fPIC to COMPILE_FLAG property. Since CMake version 2.8.9, you can use following way instead: set_target_properties( ${_target} PROPERTIES POSITION_INDEPENDENT_CODE ON ) This is much portable way, because -fPIC may not be sufficient for some platforms.