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


%% Andreas Schwab <schwab@suse.de> writes:

  as> Fergus Henderson <fjh@cs.mu.oz.au> writes:

  as> |> Then you could use this feature by just setting the `CC' make variable
  as> |> to contain this special character followed by the name of the appropriate
  as> |> `.so' file.
  as> |> 
  as> |> 	CC := &`gcc -print-dynamic-driver`
  as> |> 
  as> |> Note that using GNU Make's ":=" rather than "=" here ensures that this
  as> |> will only get evaluated once.

  as> If you want that you must use the GNU make extension $(shell ...):

  as>         CC := &$(shell gcc -print-dynamic-driver)

I'm totally lost on the context here (what exactly are you trying to
accomplish?) since I wasn't privy to the origins of the thread.

However, I don't like adding a new magic symbol, either, if possible.  I
would prefer something like:

  CC := $(dynload $(shell gcc -print-dynamic-driver))

or whatever.

Of course, I'm talking pure syntax here, since I have no real idea what
this is supposed to do.  Is the idea that the compiler is a
dynamically-loaded module and make would invoke the compiler as a shared
library, instead of fork/exec?

Funky.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@gnu.org>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


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