Changes between Version 3 and Version 4 of Ticket #56991, comment 24


Ignore:
Timestamp:
Oct 7, 2019, 4:43:18 AM (2 years ago)
Author:
kencu (Ken)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56991, comment 24

    v3 v4  
    77In that installation, in macports.conf, I added these two settings:
    88{{{
    9 #KEN
    109macosx_deployment_target     10.13
    1110macosx_sdk_version           10.13
    1211}}}
    13 I put a copy of the MacOS 10.13 SDK in the proper location where MacPorts would find it. I believe it is correct to put it here:
     12I put a copy of the MacOS 10.13 SDK where MacPorts would find it here:
    1413{{{
    1514/Library/Developer/SDKs/MacOSX10.13.sdk
     
    2019}}}
    2120
    22 Then I found, when trying to build a few port +universal, that the plumbing of the SDK to the linker was not always happening correctly. Also, sometimes the linker would put out a warning that 32bit builds were going away, and this would generate an error in some link steps. I stopped those issues with a minor modification to `portconfigure.tcl` in that /opt/universal MacPorts installation.
     21Sometimes the linker would put out a warning that 32bit builds were going away, and this would generate an error in some link steps (like cmake). I stopped those issues with a minor modification to `portconfigure.tcl` in that /opt/universal MacPorts installation.
    2322{{{
    24 @@ -893,14 +893,13 @@
     23@@ -893,13 +893,14 @@
    2524                 append_to_environment_value configure $env_var -isysroot${configure.sdkroot}
    2625             }
    2726             append_to_environment_value configure "LDFLAGS" -Wl,-syslibroot,${configure.sdkroot}
    28 +            append_to_environment_value configure "LDFLAGS" -Wc,-isysroot,${configure.sdkroot}
    2927+            append_to_environment_value configure "LDFLAGS" -Wl,-w
    3028         }
    31 }}}
    32 
    33 After that, almost all the ports would install +universal on that system without any trouble. A few ports were not plumbing the `-isysroot${configure.sdkroot}` to the build and link line, three or four, and I tagged that bit onto the compiler spec, most often by adding a bit like this to the portfile:
    34 {{{
    35 if {${configure.sdkroot} ne ""} {
    36     configure.cc-append   -isysroot${configure.sdkroot}
    37     configure.cxx-append  -isysroot${configure.sdkroot}
    38 }
    3929}}}
    4030