Open Quuxplusone opened 11 years ago
Bugzilla Link | PR16738 |
Status | NEW |
Importance | P enhancement |
Reported by | Rick Foos (Rfoos@SolengTech.com) |
Reported on | 2013-07-29 14:59:53 -0700 |
Last modified on | 2016-03-21 15:27:53 -0700 |
Version | trunk |
Hardware | Macintosh MacOS X |
CC | fang@csl.cornell.edu, llvm-bugs@lists.llvm.org, rafael@espindo.la, RandomDSdevel@gmail.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | PR14903 |
See also |
I build with cmake ENABLE_SHARED on darwin8 all the time, with the additional -fno-common flag, using apple-gcc-4.0.1 as the stage 1 compiler.
(How are ENABLE_PIC and ENABLE_SHARED related?)
Anyways, "-fPIC not supported with Xcode" seems like nonsense to me.
I also don't think this bug depends on 14903, if anything, the other way around.
Just wanted to note that this bug still exists as of today.
Um…will it ever be fixed?
@Rick Foos, @David Fang:
Huh: strangely, Apple's Xcode Build Setting Reference (https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html states under its section for GCC_DYNAMIC_NO_PIC
(perhaps the 'GCC_*
' prefix is left over from when Xcode used that compiler under the hood…?) that this setting, which the documentation (https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW113) says is equivalent to passing -m dynamic-no-pic
to the compiler, is set to /NO
/ by default! Perhaps the documentation is incorrect and somebody should contact Apple for clarification about this since the company doesn't seem to have updated the reference document of which I speak since, according to its 'Revision History' section (https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/9-Revision-4.0/history.html#//apple_ref/doc/uid/TP40003931-CH4-SW1,) it hasn't been updated since October 5th, 2010? I'd ask if this might be an error with any LLVM-related Xcode projects' configurations or the order in which they're initialized, but said projects aren't generated from CMakeLists.txt
until you run cmake -G "Xcode" "/path/to/llvm"
.