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
observed should be gone. What about the following (untested) patch?

The patch works, though we might want to filter out the extra warning
issued when using gcc/g++ for just compiling and not doing any linking:

"-search_paths_first: linker input file unused because linking not done"

Otherwise you get one of those for each "gcc -c", since the override
can't tell whether gcc is going to be used for compiling or linking...


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
etc.

--anders

______________________________________________________________________
OpenPKG                                             http://openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to