[60662] trunk/base/src/port1.0/portconfigure.tcl
Jeremy Huddleston
jeremyhu at macports.org
Thu Nov 19 12:00:03 PST 2009
>> As for "non-Apple toolchains" ... isnt' that what [arch_flag_supported] is designed to handle in this hunk:
>>
>> @@ -220,7 +220,7 @@
>> } elseif {[tbool configure.m32]} {
>> set flags "-m32"
>> } elseif {${configure.build_arch} != ""} {
>> - if {[arch_flag_supported] && ($tool == "cc" || $tool == "cxx" || $tool == "objc")} {
>> + if {[arch_flag_supported] && ($tool == "cc" || $tool == "cxx" || $tool == "objc" || $tool == "ld")} {
>> set flags "-arch ${configure.build_arch}"
>> } elseif {${configure.build_arch} == "x86_64" || ${configure.build_arch} == "ppc64"} {
>> set flags "-m64"
>
> Yes, but it's only doing the right thing for flags that are going to be
> passed to a compiler. You can't do "ld -m64 ..."
Ah, ok. I see what you were saying now...
So then how does one tell a non-Apple ld what arch to target? Or is that not an option?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3333 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20091119/29922199/attachment.bin>
More information about the macports-dev
mailing list