--- ./SConstruct.orig 2014-08-01 16:33:09.000000000 -0400 +++ ./SConstruct 2014-08-01 16:34:45.000000000 -0400 @@ -153,7 +153,7 @@ # Initialize CPPFLAGS and LIBPATH from environment to get user preferences env.Replace(CPPFLAGS = os.getenv('CPPFLAGS', '')) -env.Replace(LIBPATH = [os.getenv('LIBPATH', '')]) +env.Replace(RPATH = [os.getenv('RPATH', '')]) # Set -pthread flag explicitly to make sure that pthreads are # enabled on all platforms. @@ -165,6 +165,9 @@ env.Append(CPPFLAGS = ' -I/usr/local/include ') if sysname == 'sunos': env.Replace(SHLINKFLAGS = '-shared ') + env.Replace(AR = 'ar') + env.Replace(ARFLAGS= 'r') + env.Replace(ARCOM = '$AR $ARFLAGS $TARGET $SOURCES') # Add paths is extra_sysroot argument was specified extra_sysroot = ARGUMENTS.get('extra_sysroot', '')