how to build against an older SDK - library not found for -lcrt1.10.6.o
Ryan Schmidt
ryandesign at macports.org
Wed Nov 15 16:49:38 UTC 2017
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.
More information about the macports-dev
mailing list