1 | | yes, you're correct the 10.13 SDK should indeed go in `/Library/Developer/CommandLineTools/SDKs/` |
2 | | |
3 | | Try this -- it seems quite promising to fix almost everything, without a portfile overlay. I haven't tested every port yet. |
4 | | |
5 | | {{{ |
6 | | |
7 | | $ diff -u /opt/local/libexec/macports/lib/port1.0/portconfigure.tcl /opt/universal/libexec/macports/lib/port1.0/portconfigure.tcl |
8 | | --- /opt/local/libexec/macports/lib/port1.0/portconfigure.tcl 2019-05-09 18:02:41.000000000 -0700 |
9 | | +++ /opt/universal/libexec/macports/lib/port1.0/portconfigure.tcl 2019-09-21 14:31:58.000000000 -0700 |
10 | | @@ -893,6 +893,8 @@ |
11 | | append_to_environment_value configure $env_var -isysroot${configure.sdkroot} |
12 | | } |
13 | | append_to_environment_value configure "LDFLAGS" -Wl,-syslibroot,${configure.sdkroot} |
14 | | + append_to_environment_value configure "SDKROOT" ${configure.sdkroot} |
15 | | + append_to_environment_value configure "LDFLAGS" -Wl,-w |
16 | | } |
17 | | |
18 | | # add extra flags that are conditional on whether we're building universal |
19 | | |
20 | | $ diff -u /opt/local/libexec/macports/lib/port1.0/portbuild.tcl /opt/universal/libexec/macports/lib/port1.0/portbuild.tcl |
21 | | --- /opt/local/libexec/macports/lib/port1.0/portbuild.tcl 2018-10-11 15:01:13.000000000 -0700 |
22 | | +++ /opt/universal/libexec/macports/lib/port1.0/portbuild.tcl 2019-09-21 15:11:15.000000000 -0700 |
23 | | @@ -196,6 +196,11 @@ |
24 | | global build.cmd |
25 | | |
26 | | set jobs_suffix [build_getjobsarg] |
27 | | + global configure.sdkroot |
28 | | + if {${configure.sdkroot} ne ""} { |
29 | | + ui_notice "setting build SDKROOT to ${configure.sdkroot}" |
30 | | + build.env-append SDKROOT="${configure.sdkroot}" |
31 | | + } |
32 | | |
33 | | set realcmd ${build.cmd} |
34 | | set build.cmd "${build.cmd}$jobs_suffix" |
35 | | |
36 | | set realcmd ${build.cmd} |
37 | | set build.cmd "${build.cmd}$jobs_suffix" |
38 | | |
39 | | |
40 | | $ diff -u /opt/local/libexec/macports/lib/port1.0/portdestroot.tcl /opt/universal/libexec/macports/lib/port1.0/portdestroot.tcl |
41 | | --- /opt/local/libexec/macports/lib/port1.0/portdestroot.tcl 2018-10-11 15:01:13.000000000 -0700 |
42 | | +++ /opt/universal/libexec/macports/lib/port1.0/portdestroot.tcl 2019-09-21 15:11:09.000000000 -0700 |
43 | | @@ -121,6 +121,12 @@ |
44 | | } |
45 | | |
46 | | proc portdestroot::destroot_main {args} { |
47 | | + global configure.sdkroot |
48 | | + if {${configure.sdkroot} ne ""} { |
49 | | + ui_notice "setting destroot SDKROOT to ${configure.sdkroot}" |
50 | | + destroot.env-append SDKROOT="${configure.sdkroot}" |
51 | | + } |
52 | | + |
53 | | command_exec destroot |
54 | | return 0 |
55 | | } |
56 | | }}} |
| 1 | Edit - no longer relevant with macports 2.6.1 |