This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: BUG gcc-mingw 20040810-1 library search path


On Mon, 30 Aug 2004, Gerrit P. Haase wrote:

> Hallo sengtsongpa-cygwin001,
>
> [snip]
>
> This is in binutils/ld/configure.tgt:
> i[3-7]86-*-cygwin*)     targ_emul=i386pe ;
>                         targ_extra_ofiles="deffilep.o pe-dll.o"
>                         test "$targ" != "$host" && LIB_PATH='${tooldir}/lib/w32api' ;;
>
> where tooldir should be /usr/i686-pc-mingw32 in this case and you need
> to have the symlinks installed in /usr/i686-pc-mingw32:
>     21 Nov  1  2003 bin -> ../i686-pc-cygwin/bin
>     16 Nov  1  2003 include -> ../include/mingw
>     12 Nov  1  2003 lib -> ../lib/mingw
>
> Now, the library path automatically searched by the linker is:
> /usr/i686-pc-mingw32/../lib/mingw/w32api
>
> % export tooldir=/usr/i686-pc-mingw32
> % ls ${tooldir}/lib/w32api
> ls: /usr/i686-pc-mingw32/lib/w32api: No such file or directory
>
> Hmmm, doesn't work, but it was always this way, wasn't it?

Ahem.  Shouldn't this be

$ export tooldir=/usr/i686-pc-mingw32
$ ls -ld ${tooldir}/../lib/w32api
drwxrwxr-x+   2 Administ SYSTEM          0 Jul 30 17:25 /usr/i686-pc-mingw32/../lib/w32api/
$

(note the "../")?  As you can see, works just fine for me.

> Maybe the definition of tooldir for binutlis builds has changed?
> Sorry, but I don't see where I should change the bits in gcc.
>
> Gerrit

To the OP: your problem may potentially be that you're missing the
/usr/lib mount.  However, since you didn't follow the Cygwin problem
reporting guidelines at <http://cygwin.com/problems.html>, and didn't
attach the output of "cygcheck -svr" to your report, the above is just a
WAG.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]