[Top][All Lists]

[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


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

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

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]