Changes between Version 3 and Version 4 of Ticket #56991, comment 24
- Timestamp:
- Oct 7, 2019, 4:43:18 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #56991, comment 24
v3 v4 7 7 In that installation, in macports.conf, I added these two settings: 8 8 {{{ 9 #KEN10 9 macosx_deployment_target 10.13 11 10 macosx_sdk_version 10.13 12 11 }}} 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 putit here:12 I put a copy of the MacOS 10.13 SDK where MacPorts would find it here: 14 13 {{{ 15 14 /Library/Developer/SDKs/MacOSX10.13.sdk … … 20 19 }}} 21 20 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.21 Sometimes 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. 23 22 {{{ 24 @@ -893,1 4 +893,13@@23 @@ -893,13 +893,14 @@ 25 24 append_to_environment_value configure $env_var -isysroot${configure.sdkroot} 26 25 } 27 26 append_to_environment_value configure "LDFLAGS" -Wl,-syslibroot,${configure.sdkroot} 28 + append_to_environment_value configure "LDFLAGS" -Wc,-isysroot,${configure.sdkroot}29 27 + append_to_environment_value configure "LDFLAGS" -Wl,-w 30 28 } 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 }39 29 }}} 40 30