adding to gcc -print-seach-dirs | grep ^libraries:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux