help-make
[Top][All Lists]
Advanced

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

vpath crossed with -lNAME, section 4.5.6


From: Anthony Shipman
Subject: vpath crossed with -lNAME, section 4.5.6
Date: Tue, 16 Jun 2009 02:54:08 +1000
User-agent: KMail/1.9.7

When I have a prereq "-lcurses" make will search for the library and find it 
e.g. in /usr/lib/libcurses.so.

make -d reports

   Considering target file `-lcurses'.
    Looking for an implicit rule for `-lcurses'.
    Trying pattern rule with stem `-lcurses'.
    Trying implicit prerequisite `-lcurses.o'.
.......
    Looking for a rule with intermediate file `-lcurses.o'.
etc.

I would have thought that once having found a real path 
of /usr/lib/libcurses.so it would use this as the target when searching for 
implicit rules ie 
    Looking for a rule with intermediate file `/usr/lib/libcurses.so'.

Is this a bug? The manual is not clear how make should behave in this case.

-- 
Anthony Shipman                    Mamas don't let your babies 
address@hidden                   grow up to be outsourced.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]