gcc
"Walter C. Pelissero" <[email protected]> Fri, 4 Jan 2008 15:24:08 +0100
| Newsgroups | gmane.lisp.clg.devel |
|---|---|
| Message-ID | <[email protected]> |
This is rather trivial, but it was bothering me sometime ago.
Is there a reason why the C compiler is hardwired to be the GNU one?
I suppose it's fine for Linux, CYGWIN and a couple of other systems,
but I suspect other non-GNU compilers can handle CLG's code just as
well.
I believe that modifying forms like:
(run-shell-command "gcc ~A -o ~S ~{~S~^ ~} ~{~A~^ ~}"
#-(or darwin win32)"-shared"
#+darwin "-bundle"
[...]
into
(run-shell-command "~A -o ~S ~{~S~^ ~} ~{~A~^ ~}"
#-(or darwin win32 freebsd linux)"cc -shared" ; cross your fingers and hope it's GNU
#+darwin "cc -bundle"
#+freebsd "cc -shared"
#+linux "cc -shared"
#+win32 "gcc -whatever"
[...]
would be more portable.
--
walter pelissero
http://www.pelissero.de
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/