[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shell wrappers and GCC - FYAu
From: |
Andreas Schwab |
Subject: |
Re: Shell wrappers and GCC - FYAu |
Date: |
29 Jun 2001 16:20:04 +0200 |
User-agent: |
Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.0.103 |
Fergus Henderson <address@hidden> writes:
|> Then you could use this feature by just setting the `CC' make variable
|> to contain this special character followed by the name of the appropriate
|> `.so' file.
|>
|> CC := &`gcc -print-dynamic-driver`
|>
|> Note that using GNU Make's ":=" rather than "=" here ensures that this
|> will only get evaluated once.
If you want that you must use the GNU make extension $(shell ...):
CC := &$(shell gcc -print-dynamic-driver)
Backquotes are never evaluated by make.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
address@hidden
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5