<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">> <span class="Apple-style-span" style="font-family: monospace; white-space: pre; ">Mojave requires Xcode 10 which contains only the 10.14 SDK. </span><span class="Apple-style-span" style="font-family: monospace; white-space: pre; ">MacPorts doesn't have any particular support at this time for accessing alternative SDKs that the user might have placed in other locations.</span><div><br></div><div>I've been forcing MacPorts to do "bad" things for years, building stuff on 10.6.8 that has no rightful place being built there.</div><div><br></div><div>This bit of Josh's in libsdl2 works just fine to force a build against the 10.7 SDK on 10.6.8, for example.</div><div><br></div><div><div>platform macosx {</div><div>    if {${os.major} <= 10} {</div><div>        # Build requires at least 10.7.3 SDK, even when targeting 10.6</div><div>        set lion_sdkpath ${developer_dir}/SDKs/MacOSX10.7.sdk</div><div>        if {[file exists $lion_sdkpath]} {</div><div>            configure.sdkroot $lion_sdkpath</div><div>        } else {</div><div>            pre-fetch {</div><div>                error "Building $name @${version} on Mac OS X 10.6 requires the MacOSX10.7.sdk to be present in ${developer_dir}/SDKs/"</div><div>            }</div><div>        }</div><div>    }</div><div>}</div></div><div><br></div><div><br></div><div>The Xcode clang in /usr/bin/ will complain that it can't build against libc++ on 10.6.8, but any macports-clang will do so very happily.</div><div><br></div><div>It seems most stuff can be forced to build against any SDK you want, most of the time. I build TenFourFox against the MacOSX.10.4u.SDK on 10.6.8 using gcc4.8 without any troubles.</div><div><br></div><div>It gets tricky when it's an xcodebuild Port, but there I just symlink in the macports-clang instead of the xcode clang into the SDK, and the macports-clang happily does what you want it to, building against libc++ on 10.6.8 or what have you.</div><div><br></div><div><br></div><div>SO - without having tried it -- setting </div><div><br></div><div>configure.sdkroot /path/to/10.13.SDK</div><div><br></div><div>and building with any non-Xcode clang might have at least some chance of working to build i386 software.</div><div><br></div><div><br></div><div>Ken</div></body></html>