how to build against an older SDK - library not found for -lcrt1.10.6.o
Joshua Root
jmr at macports.org
Wed Nov 15 04:04:07 UTC 2017
On 2017-11-15 12:14 , Ken Cunningham wrote:
> Hi, smart people.
>
> 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
>
>
> but then the compiler errors out generating files due to a missing library that the compiler expects to see on 10.6, but doesn't exist in the 10.4u SDK.
>
> configure:3576: /opt/local/bin/gcc-mp-4.8 -o conftest -Os -isysroot /Xcode3/SDKs/MacOSX10.4u.sdk -m64 -L/opt/local/lib -Wl,-headerpad_max_install_names conftest.c 1>&5
> ld: library not found for -lcrt1.10.6.o
>
>
>
> I have a feeling this is not something fixable, other than maybe hacking a symlink for crt1.10.6.o into the 10.4u SDK (which is easy enough, but I'm trying to see if the can be done "the right way".
>
> Any ideas?
Are you also using a 10.4 deployment target?
- Josh
More information about the macports-dev
mailing list