diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-06-27 14:38:57 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-06-27 14:39:24 (GMT) |
commit | 92356038952df71894ea1c390f5b5902df8780be (patch) | |
tree | 713b9872f5758392c1043f55fe5b922b15261f39 /Tests/PositionIndependentTargets | |
parent | bd67f75e41e4525abdf3db5184c34d7d5895615d (diff) | |
download | CMake-92356038952df71894ea1c390f5b5902df8780be.zip CMake-92356038952df71894ea1c390f5b5902df8780be.tar.gz CMake-92356038952df71894ea1c390f5b5902df8780be.tar.bz2 |
Fix PositionIndependentTargets test with clang trunk.
The __PIE__ define might be set instead of __PIC__ if fPIE is used.
http://llvm.org/bugs/show_bug.cgi?id=13221
Diffstat (limited to 'Tests/PositionIndependentTargets')
-rw-r--r-- | Tests/PositionIndependentTargets/pic_test.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/PositionIndependentTargets/pic_test.h b/Tests/PositionIndependentTargets/pic_test.h index 3f64557..13cf8f7 100644 --- a/Tests/PositionIndependentTargets/pic_test.h +++ b/Tests/PositionIndependentTargets/pic_test.h @@ -1,7 +1,7 @@ #if defined(__ELF__) -# if !defined(__PIC__) -# error "The POSITION_INDEPENDENT_CODE property should cause __PIC__ to be defined on ELF platforms." +# if !defined(__PIC__) && !defined(__PIE__) +# error "The POSITION_INDEPENDENT_CODE property should cause __PIC__ or __PIE__ to be defined on ELF platforms." # endif #endif |