On Nov 14, 2017, at 19:14, Ken Cunningham wrote:
> I'm trying to write up a Portfile (for TenFourFox) that requires building
> against an older SDK (10.4u) and I'm on 10.6 Intel.
>
> It's easy enough to pass in the sysroot
>
> configure.cxxflags-append -isysroot
> ${developer_dir}/SDKs/MacOSX10.4u.sdk
> configure.cflags-append -isysroot ${developer_dir}/SDKs/MacOSX10.4u.sdk
> configure.cppflags-append -isysroot
> ${developer_dir}/SDKs/MacOSX10.4u.sdk
You don't need to do that manually. Just set "configure.sdk_version 10.4";
MacPorts then adds the right -isysroot flags for you.