On 08/08/2015 01:29, Buck Evan wrote:
Laurent, I've just run across a counter example: (this gives me a bonafide
issue when handling your -lskarnet rules)
s6-user@696f14e9c9bd:~/scratch$ cat Makefile
all: -lc
echo $^
s6-user@696f14e9c9bd:~/scratch$ make
echo /usr/lib/x86_64-linux-gnu/libc.so
/usr/lib/x86_64-linux-gnu/libc.so
s6-user@696f14e9c9bd:~/scratch$ make --version
GNU Make 3.81
s6-user@696f14e9c9bd:~/scratch$ /opt/make/make
make: *** No rule to make target '-lc', needed by 'all'. Stop.
s6-user@696f14e9c9bd:~/scratch$ /opt/make/make --version
GNU Make 4.1
Built for x86_64-unknown-linux-gnu
Interesting. It clearly shouldn't do that, because make-4.1 is
very much supposed to handle -l targets: if it didn't, no
skarnet.org package could ever build. I suspect it's related to
the way you installed it, something about vpaths and dynamic
linkers - but I'm too sleepy right now to investigate. If by
tomorrow you haven't found why it's not working, I'll give it a
try.
--
Laurent