bugmake - Bugs: bug #32511, Prerequisite libraries can expand...

 
 

bug #32511: Prerequisite libraries can expand to the system library despite vpath

Submitted by:  None
Submitted on:  Thu 17 Feb 2011 03:05:04 AM UTC  
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  Paul D. Smith <psmith> Open/Closed:  Closed
Component Version:  3.82 Operating System:  POSIX-Based
Fixed Release:  4.0 Triage Status:  Verified

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Sun 18 Sep 2011 08:57:57 PM UTC, comment #1: 

Fixed in CVS.

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Thu 17 Feb 2011 03:05:04 AM UTC, original submission:  

Prerequisite libraries can expand to the system library despite being in a path in vpath. However, this only seems to occur if the vpath for archives follows a vpath for another pattern such as headers.
For example if libssl.a and libcrypto.a both exist in /tmp and /usr/lib, both are prerequisite libraries to an executable, and "vpath %.a /tmp" is set then both should expand to the version in /tmp. However, only the first one expands to the version in /tmp. The second one expand to the version in /usr/lib provided a vpath for a different pattern comes before the "vpath %.a /tmp".

Here is an example makefile:

######## START OF MAKEFILE ###################
LD              := gcc
LDFLAGS         := -L/tmp
vpath %.h /tmp
vpath %.a /tmp
.LIBPATTERNS=lib%.a lib%.so

example: example.o -lssl -lcrypto
        $(LD) $(LDFLAGS) -o $@ $^
######## END OF MAKEFILE ###################

Here is what it does:
#gmake -f Makefile.example
cc    -c -o example.o example.c
gcc -L/tmp -o example example.o /tmp/libssl.a /usr/lib/libcrypto.a

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.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-09-18 psmith StatusNone => Fixed
        Assigned toNone => psmith
        Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.0
        Triage StatusNone => Verified

    Back to the top


    Powered by Savane 3.6