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 > > 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...
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 be no longer used and this way the warning be gone. > 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". Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ OpenPKG http://openpkg.org Developer Communication List openpkg-dev@openpkg.org