WITH_GCC vs. BUILDFLAGS_GCC in bsdadminscripts, distcc, ccache

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

WITH_GCC vs. BUILDFLAGS_GCC in bsdadminscripts, distcc, ccache

Postby kdemidofff » 27 May 2010, 11:28

Im trying to make sysutils/bsdadminscripts work but have some troubles

i want use lang/gcc44 or lang/gcc45 for compilation of compatible ports and some userland
but have trouble with setting it up

i installed bsdadminscripts, gcc44, ccache, distcc but have broken builds requiring "gcc4444"

1. can i use global WITH_GCC? what value shall i set it to? shall i set before
Code: Select all
BUILDFLAGS=/usr/local/share/bsdadminscripts/buildflags.mk
.if exists(${BUILDFLAGS})
.include "${BUILDFLAGS}"
.endif

2. can i also use in [FILE]make.conf[/FILE]

Code: Select all
.if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc44)
CC=gcc44
CXX=g++44
CPP=cpp44
.endif
for quick and dirty hack compiler without bells, whistles, blackjack and and/or wores ;)
or shall i use just
Code: Select all
.if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc44)
WITH_GCC?=44
.endif


i know about options in [FILE]buildflags.conf[/FILE]
Code: Select all
BUILDFLAGS_GCC=44


but im confused when use which options, i need global compiler as gcc44 with exception of buildworld and some ports

what also about setup order of gcc44 ccache distcc? is it right? (i know libtool needs reinstalled on new compiler)

if i add gcc45 i need to reinstall all also?

Also: how can i check that i build port with gcc44 not base one?
kdemidofff
Junior Member
 
Posts: 93
Joined: 01 May 2010, 19:41
Location: Saipan, CNMI (USA)

Postby DutchDaemon » 27 May 2010, 13:03

User avatar
DutchDaemon
Old Fart
 
Posts: 10467
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby kdemidofff » 27 May 2010, 13:10

it doesn't worked with bsdadminscripts, distcc, ccache

Seems was a specific port problem
kdemidofff
Junior Member
 
Posts: 93
Joined: 01 May 2010, 19:41
Location: Saipan, CNMI (USA)


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 1 guest