Way to switch easily (Was: Re: Egcs, gcc, and Debian)
On Sun, 17 Aug 1997, Jason Gunthorpe wrote:
> for a package, it would be really nice to be able to have a way to
> globally switch between compilers, but I haven't the faintest idea what
> would be involved..
Have a "switcher" to flip symlinks. have gcc be a symlink to either egcc
or gcc, all ov which stay in their own hierarchy.
For instance, maybe have egcc and gcc.orig in /usr/bin, and gcc be a
symlink to one ov the two. Its quick, dirty, but can anyone think of any
reason atall why it wouldnt work?
Maybe a script like this:
#!/bin/sh
ln -s /usr/bin/$1 /usr/bin/gcc
Manong Dibos
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: