This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Shell wrappers and GCC - FYAu


Fergus Henderson <fjh@cs.mu.oz.au> 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."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]