mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
scons tries c++, then g++. If you had g++ installed then it would use that regardless of CXX. Just pull CXX out of the environment intead.
19 lines
741 B
Text
19 lines
741 B
Text
--- ./SConstruct.orig 2014-08-22 14:25:14.780951671 -0500
|
|
+++ ./SConstruct 2014-08-22 14:25:37.478948513 -0500
|
|
@@ -26,7 +26,7 @@
|
|
if platform == 'linux-gcc':
|
|
CXX = 'g++' # not quite right, but env is not yet available.
|
|
import commands
|
|
- version = commands.getoutput('%s -dumpversion' %CXX)
|
|
+ version = 'FreeBSD'
|
|
platform = 'linux-gcc-%s' %version
|
|
print "Using platform '%s'" %platform
|
|
LD_LIBRARY_PATH = os.environ.get('LD_LIBRARY_PATH', '')
|
|
@@ -121,6 +121,7 @@
|
|
env.Tool( 'default' )
|
|
env.Append( LIBS = ['pthread'], CCFLAGS = "-Wall" )
|
|
env['SHARED_LIB_ENABLED'] = True
|
|
+ env['CXX'] = os.environ['CXX']
|
|
else:
|
|
print "UNSUPPORTED PLATFORM."
|
|
env.Exit(1)
|