[cmake-developers] Adding logic to CMake for -fPIE and -fPIC
Stephen Kelly
steveire at gmail.com
Tue Jun 5 11:54:19 EDT 2012
Brad King wrote:
> On 06/05/2012 11:40 AM, Stephen Kelly wrote:
>> http://open.cdash.org/testDetails.php?test=148807497&build=2335525
>>
>> I tried outputting the OUTPUT resulting from the try_compile, but that
>> does not seem to actually create the output as expected, even though the
>> releveant commit is being tested
>>
(http://cmake.org/gitweb?p=cmake.git;a=commit;h=84d29a5358e4fa01583e2aef1e8e8097e187045f
>> ).
>>
>> Can someone with access to that box find out what is going on?
>
> CMakeError.log contains:
>
> cc1plus: error: unrecognized option `-fPIE'
>
> It is a very old OS X:
>
> $ sw_vers
> ProductName: Mac OS X
> ProductVersion: 10.3.9
> BuildVersion: 7W98
> $ g++ --version
> g++ (GCC) 3.3 20030304 (Apple Computer, Inc. build 1666)
>
> and so probably doesn't understand PIE.
>
I can add a try_compile for -fPIE on APPLE (though I wonder if it would
work), but still, I expect to see something like that in the OUTPUT variable
from check_cxx_source_compiles...
Thanks,
Steve.
More information about the cmake-developers
mailing list