Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Mike Marques
Wed, 31 May 1989 02:32
Make 3.48's directory search for link libraries problem
Author: Mike Marques
Date: Wed, 31 May 1989 02:32
Date: Wed, 31 May 1989 02:32
52 lines
1975 bytes
1975 bytes
Greetings...
In the manual for make 3.48:
--------------------------------------------------------------------
When a dependency's name has the form `-lNAME', `make' handles it
specially by searching for the file `libNAME.a' in the directories
`/lib' and `/usr/lib', and then using matching `vpath' search paths
and the `VPATH' search path.
For example,
foo : foo.c -lcurses
cc $^ -o $@
would cause the command `cc foo.c -lcurses -o foo' to be executed
when `foo' is older than `foo.c' or than `libcurses.a' (which has
probably been found by directory search in the file
`/usr/lib/libcurses.a').
----------------------------------------------------------------------
This does not seem to work when using VPATH.
The following illustrates the problem:
yunexus% cat Makefile
VPATH=.
file: file.c -lmy
cc $^ -o $@
yunexus% ls
Makefile file file.o
Makefile~ file.c libmy.a
yunexus% make -v
GNU Make version 3.48, by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 1989 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
make: *** No way to make target `-lmy'. Stop.
yunexus%
Thanks.
Mike
--
Mike Marques | Usenet: ......!utzoo!yunexus!mike
York University (Computing Services) | mike@nexus.yorku.ca
-------------------------------------| Bitnet: mike@libra.yorku.ca
Only visiting this planet... | Voice: (416) 736-5257
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads