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
This commit is contained in:
Stephen Kelly 2012-06-27 16:38:57 +02:00
parent bd67f75e41
commit 9235603895
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#if defined(__ELF__) #if defined(__ELF__)
# if !defined(__PIC__) # if !defined(__PIC__) && !defined(__PIE__)
# error "The POSITION_INDEPENDENT_CODE property should cause __PIC__ to be defined on ELF platforms." # error "The POSITION_INDEPENDENT_CODE property should cause __PIC__ or __PIE__ to be defined on ELF platforms."
# endif # endif
#endif #endif