Changing used gcc version for ports in make.conf

Hi all,

I'm trying to use gcc45 for my ports, but want to exclude openldap from it.. It is not working, openldap still uses gcc45.

Contents of my make.conf:

Code:
.if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc45)
CC=gcc45
CXX=g++45
CPP=cpp45
.endif


.if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc45)
.if empty(.CURDIR:M/usr/ports/net/openldap*)
CC=gcc45
CXX=g++45
CPP=cpp45
.endif
.endif
 
Never touch system's compiler! There is a judge list with ports that cannot build with gcc45! If you want to compile something with gcc45 do it manually. But you never change system's default compiler. Can harmful your system!
 
Perhaps you're not getting my point: I only use gcc45 for ports. But I want to exclude packages like openldap from gcc 45, so that I can compile these with the default compiler!
 
I am getting your point.
I only use gcc45 for ports ..
. Is wrong! That I am trying to explain to you.
But if you insist, then maybe comment all lines on make.conf, compile the packages you want and comment them again.
I don't know how exactly you can permanent exclude packages to be build with default compiler.
 
his_royal_evilness said:
Hi all ,

I'm trying to use gcc45 for my ports , but want to exclude openldap from it..

It is not working , openldap still uses gcc45

Contents of my make.conf

To make it working you need to delete the first "if/endif" block
Code:
[B]REMOVE THIS !!![/B]
.if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc45)
CC=gcc45
CXX=g++45
CPP=cpp45
.endif

and leave only this part:
Code:
.if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc45)
.if empty(.CURDIR:M/usr/ports/net/openldap*)
CC=gcc45
CXX=g++45
CPP=cpp45
.endif
.endif
 
Back
Top