[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
.LIBPATTERNS doesn't work with pattern rules !?
From: |
Tim Rühsen |
Subject: |
.LIBPATTERNS doesn't work with pattern rules !? |
Date: |
Thu, 1 Mar 2018 16:24:29 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Hi,
I have problems to get .LIBPATTERNS (to use -l... dependencies) work
with pattern rules.
Is this expected or is it a bug ? I couldn't find any restrictions in
the make online manual. Maybe I missed something out...
In the makefile I have these lines:
.LIBPATTERNS=/tmp/lib%.a lib%.so lib%.a
LIB=/tmp/
LN=$(SILENT)LIBRARY_PATH="$(LIB)" gcc
This rule doesn't work:
../offline/%: %.o -lxxx
$(info Linking $(@F) ...)
$(LN) $^ -o $@
This rule works as expected:
../offline/%: %.o /tmp/libxxx.a
$(info Linking $(@F) ...)
$(LN) $^ -o $@
(/tmp/libxxx.a exists.)
$ make -v
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
The error message is 'make: *** No rule to make target...'.
Please reply with me in CC (not subscribed curently).
Thanks for any input.
Regards, Tim
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- .LIBPATTERNS doesn't work with pattern rules !?,
Tim Rühsen <=