Hi, 

LIB is picked up by MakeMaker if it is available in the environment, it causes 
failures everytime when LIB contains spaces as it is usually the case in a 
default Visual Studio setup.

This is a problem on Cygwin.

Just unset LIB in your Cygwin startup batch or redefine it to s.th. useful in 
your .bashrc

This should be fixed in MakeMaker.


Gerrit


Nick Ing-Simmons <[EMAIL PROTECTED]> schrieb am 27.03.04 16:40:36:

=?unknown-8bit?B?RGFuaetsIFcu?= Crompton <[EMAIL PROTECTED]> writes:
>Hi,
>
>       due to library path ambiguity within Cygwin I've found that
>the Makefile PASTHU variable will cause the make to fail with:
>
>cd pTk && make -f Makefile all LIB="C:\Program Files\Microsoft SDK\Lib\.;c:\Program 
>Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\" LIBPERL_A="libperl.a" 
>LINKTYPE="dynamic" PREFIX="/usr" OPTIMIZE="-O2" PASTHRU_DEFINE="" PASTHRU_INC=""
>Syntax error: Unterminated quoted string
>make: *** [subdirs] Error 2
>
>       Did you spot the \" ? I kept missing it.
>
>       My ObHack for this was a space in PASTHRU's LIB variable.
>
>PASTHRU = LIB="$(LIB) "\
>                     ^ - here
>
>       I'm sure there is a different correct way to do this, but
>as I don't use the libs in the dir. I wanted something similar
>to
>       echo $$LIB | sed 's/\\/\\\\/g'
>
>which works, but doesn't use the internal $(LIB). This is probably
>a task for a Makefile hacker.
>
>
>blaze your trail

It is far from clear why PASTHRU is passing 'LIB' as it never sets it!
MakeMaker list care to comment?

Only places 'LIB=' occurs in Tk804 is PNG's sub makefiles.
There it is supposed to be name of 'AR' like command that 
builds .lib files from .obj files. So PASTHRU would be wrong.

Attached patch (for Tk) fixes up MakeMaker's PASTHRU to avoid the problem.







-- 
=^..^=
_______________________________________________________________________
... and the winner is... WEB.DE FreeMail! - Deutschlands beste E-Mail
ist zum 39. Mal Testsieger (PC Praxis 03/04) http://f.web.de/?mc=021191

Reply via email to