how to build against an older SDK - library not found for -lcrt1.10.6.o

Ken Cunningham ken.cunningham.webuse at gmail.com
Wed Nov 15 01:14:00 UTC 2017


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?

Thanks,

Ken



More information about the macports-dev mailing list