On Wed, Jun 06, 2007, Anders F Björklund wrote:
Ralf S. Engelschall wrote:
So appending -Wl,-search_paths_first to the LDFLAGS should work too.
Cool, that's it! If we now override the cc, gcc and ld commands under
Mac OS X and enfore this option, the various linking problems you have
Ralf S. Engelschall wrote:
And need to provide fake binutils/gcc packages, with /usr symlinks.
(so that dependencies and such work, otherwise it'll try to install)
/openpkg/bin/cc - /usr/bin/cc
/openpkg/bin/gcc - /usr/bin/gcc
This can be provided by openpkg-import.
Will do that, then:
This can be provided by openpkg-import.
Will do that, then: use openpkg-import to replace binutils and gcc.
One little problem is that the binutils and cctools differ in content,
so
the following programs are missing: addr2line, objcopy, objdump,
readelf
I fixed the missing symlink target
Ralf S. Engelschall wrote:
However, this still did not work because OpenPKG will fail to locate
the real compiler e.g. i686-apple-darwin8-gcc-4.0.1 (from /usr/bin),
but only find the gcc-4.0 driver front-end... (symlinked from cc)
So either I need to bring some more symlinks in, or do it
Ralf S. Engelschall wrote:
Oh, I see. Ok, I've now improved the wrapper scripts. Please manually
remove prefix/libexec/openpkg/override/{cc,gcc} and upgrade to the
latest bootstrap version as of today. Then if -c or -E is present
on the compiler command line the -Wl,-search_paths_first should