This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
adding to gcc -print-seach-dirs | grep ^libraries:
- From: Jan Nieuwenhuizen <janneke at gnu dot org>
- To: gcc-help at gnu dot org
- Date: Sat, 16 Aug 2003 12:44:25 +0200
- Subject: adding to gcc -print-seach-dirs | grep ^libraries:
- Organization: Jan at Appel
Hi,
I'm cross compiling packages for Cygwin. I've been using gcc-2.95.3,
but am upgrading my installation (now trying 3.4 CVS).
Cygwin needs an additonal include and library directories:
SYSROOT/usr/include/w32api and SYSROOT/usr/lib/w32api.
When building the cross linker from binutils, I can add to
i686-cygwin-ld's search path by configuring with the extra flag:
--with-lib-path=SYSROOT/lib:SYSROOT/usr/lib:SYSROOT/usr/lib/w32api
which, in my case, yields:
$(i686-cygwin-gcc -print-prog-name=ld) --verbose |grep SEARCH
SEARCH_DIR("/usr/i686-cygwin/lib"); SEARCH_DIR("/usr/i686-cygwin/lib"); SEARCH_DIR("/cygwin/usr/lib"); SEARCH_DIR("/cygwin/usr/lib/w32api");
However, it seems that i686-cygwin-gcc uses it's own library search
path:
i686-cygwin-gcc -print-search-dirs |grep ^libraries:
libraries: =/usr/lib/gcc/i686-cygwin/3.4/:/usr/lib/gcc/i686-cygwin/3.4/:/usr/lib/gcc/i686-cygwin/3.4/../../../../i686-cygwin/lib/i686-cygwin/3.4/:/usr/lib/gcc/i686-cygwin/3.4/../../../../i686-cygwin/lib/:/usr/lib/gcc/i686-cygwin/3.4/../../../i686-cygwin/3.4/:/usr/lib/gcc/i686-cygwin/3.4/../../../:/cygwin/lib/i686-cygwin/3.4/:/cygwin/lib/:/cygwin/usr/lib/i686-cygwin/3.4/:/cygwin/usr/lib/
There is no SYSROOT/usr/lib/w32api; how should I add it?
It seems that I need to add it, because libtool uses gcc's library
search path. See the related problem:
http://mail.gnu.org/archive/html/bug-libtool/2003-08/msg00003.html
Btw, I really like the `new' --with-sysroot flag and behaviour; no
more symlink fixup trickery and trying to prevent copying the sysroot
installation!
Greetings,
Jan.
--
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org