bugmake - Bugs: bug #25703, .LIBPATTERNS is not pattern...

 
 

bug #25703: .LIBPATTERNS is not pattern dependent.

Submitter:  None
Submitted:  Wed 25 Feb 2009 01:34:13 PM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  3.81 Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 07 Jun 2009 12:59:29 AM UTC, comment #1: 

I'm marking this as an enhancement, since the code works as designed.  I agree it would be nice to allows LIBPATTERNS (and VPATH!) to use target-specific and pattern-specific values.

Right now, though, we don't set up the variable sets properly before doing the lookups for this to happen.

Paul D. Smith <psmith>
Group administrator
Wed 25 Feb 2009 01:34:13 PM UTC, original submission:  

The following makefile illustrates what I regard as a bug in make's library search mechanism. In short .LIBPATTERNS does not work as either a pattern or target dependent variable.

all: dynamic.show static.show

dynamic.%: .LIBPATTERNS = lib%.so lib%.a
static.%:  .LIBPATTERNS = lib%.a lib%.so

libs := -lm -lnsl

dynamic.show: $(libs)
static.show:  $(libs)

%.show:
@ echo "LIBPATTERNS and VPATH resolution: $(.LIBPATTERNS) : $@ : $^"



Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-06-07 psmith Item GroupBug Enhancement

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code