I am using gnu make 3.79 under Solaris 2.6.
 
The new .LIBPATTERN functionality is very useful, but does not appear to work in the "true" make sense (to me at least).
 
The following is the type of problem I am trying to solve:-
 
VPATH := $(LIBDIR):$(LIBDIR2)
 
LIBS := -lffoobar
 
$(BINDIR)/prog : $(CURDIR)/source.c $(filter -l% %.a, $(LIBS))
    cc -o $@ < $(LIBS)
 
$(LIBDIR)/libfoobar.so : (LIBDIR)/libfoobar.so.1
    rm $@
    ln -s $< $@
 
(LIBDIR)/libfoobar.so.1 : $(OBJS)
    cc -o $@ etc. etc.
The link so.1 -> so is necessary to support versioning for the shared libraries we use in the product.
 
The problem arises on first time build - I get "No rule to make -lfoobar".
If, however, I build foobar.so - the error disappears.
 
It looks like the algorithm is able to locate the file is present, but is unable to make the library on demand from the -l dependency ?
 
Thanks for any help.
 
 
John O'Connor, Phone.com (Belfast)
Phone: +44.28.90416350
Mobile: +44.7802.186243

================================================================

Privacy and Confidentiality Notice: The information contained in this electronic mail message is intended for the named recipient(s) only. It may contain privileged and confidential information. If you are not an intended recipient, you must not copy, forward, distribute, or take any action in reliance on it. If you have received this electronic mail message in error, please notify the sender immediately.

================================================================

 
BEGIN:VCARD
VERSION:2.1
N:C O'Connor;John
FN:John C O'Connor
NICKNAME:John C O'Connor
ORG:Phone.com
TITLE:Snr Software Engineer
TEL;WORK;VOICE:+44.28.90416350
TEL;CELL;VOICE:+44.7802.186243
TEL;WORK;FAX:+44.28.90416200
TEL;HOME;FAX:+44.28.90416200
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Charles House,=0D=0A103-111 Donegall Street;Belfast;County Antrim;BT1 2FJ
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Charles House,=0D=0A103-111 Donegall Street=0D=0ABelfast, County Antrim BT1 =
2FJ
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20000830T223415Z
END:VCARD

Reply via email to