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

 
 

bug #25703: .LIBPATTERNS is not pattern dependent.

Submitted by:  None
Submitted on:  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

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    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.3