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 - NormalItem Group: Enhancement
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 3.81Operating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment (Rich MarkupRich 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 07 Jun 2009 12:59:29 AM UTCpsmithItem GroupBug=>Enhancement

    Back to the top


    Powered by Savane 3.1-cleanup