Gcc 3.3 port

Jens Rehsack rehsack at liwing.de
Thu Nov 13 10:05:07 PST 2003


Marc van Woerkom wrote:
> I have a question regarding the gcc34 port under ports/lang.
> 
> Does it replace the standard gcc or does it coexist?
> 
> E.g. if I build a new userland/kernel from my /usr/src -
> will this use its own gcc or use the gcc from the ports?

Have a look into the pkg-plist file and the Makefile in
${PORTSDIR}/lang/gcc34, it'll show you that it's a
snapshot of the summer gcc 3.3.1 and should be updated.
Furthermore it shows you, that the installed binaries
are in /usr/local/bin and have the suffix '33'.

What does it mean in real? It means, if your path is similar
to mine:
$ echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/trevor/bin
$ which cc
/usr/bin/cc
$ which gcc33
/usr/local/bin/gcc33

each program which lies in /usr/bin will be found (and excuted)
before anyone from /usr/local/bin. If you now check the files
in /usr/share/mk/, you may found out, that the system compiler
is named 'cc', not 'gcc', so even if no suffix would be used,
no conflict will occur.

Finally, you can be sure that your system will be build with
the right (recommented) compiler, as long as you don't add
sth. like 'CC=gcc33' to your /etc/make.conf, local environment
or something else what could affect 'make buildworld'.

Regards,
Jens



More information about the freebsd-ports mailing list