20 | | I made a another version that works like the SDK change from upstream. |
| 20 | |
| 21 | The below patch does the required changes within a single patch |
| 22 | {{{ |
| 23 | diff -u /opt/universal/etc/macports/macports.conf.orig /opt/universal/etc/macports/macports.conf |
| 24 | --- /opt/universal/etc/macports/macports.conf.orig 2019-09-27 22:22:38.000000000 -0400 |
| 25 | +++ /opt/universal/etc/macports/macports.conf 2019-09-27 22:22:14.000000000 -0400 |
| 26 | @@ -1,6 +1,9 @@ |
| 27 | # MacPorts system-wide configuration file. |
| 28 | # Commented-out values are defaults unless otherwise noted. |
| 29 | |
| 30 | +macosx_deployment_target 10.13 |
| 31 | +macosx_sdk_version 10.13 |
| 32 | + |
| 33 | # Directory under which MacPorts should install ports. This must be |
| 34 | # where MacPorts itself is installed. |
| 35 | prefix /opt/universal |
| 36 | diff -u /opt/universal/libexec/macports/lib/port1.0/portutil.tcl.orig /opt/universal/libexec/macports/lib/port1.0/portutil.tcl |
| 37 | --- /opt/universal/libexec/macports/lib/port1.0/portutil.tcl.orig 2019-09-27 16:50:27.000000000 -0400 |
| 38 | +++ /opt/universal/libexec/macports/lib/port1.0/portutil.tcl 2019-09-30 17:28:43.000000000 -0400 |
| 39 | @@ -426,7 +426,11 @@ |
| 40 | set ${varprefix}.env_array(LIBRARY_PATH) [join [option compiler.library_path] :] |
| 41 | } |
| 42 | set ${varprefix}.env_array(DEVELOPER_DIR) [option configure.developer_dir] |
| 43 | - |
| 44 | + if {[option configure.sdkroot] ne ""} { |
| 45 | + set ${varprefix}.env_array(SDKROOT) [option configure.sdkroot] |
| 46 | + set ${varprefix}.env_array(LDFLAGS) [option configure.ldflags -Wl,-w] |
| 47 | + } |
| 48 | + |
| 49 | # Debug that. |
| 50 | ui_debug "Environment: [environment_array_to_string ${varprefix}.env_array]" |
| 51 | |
| 52 | }}} |