Well. This has been a productive hour. OSol doesn't naturally invoke gcc with -m64. So of course __x86_64__ wasn't defined. So I went into SConstruct and replaced:
if os.sys.platform == 'sunos5': env['ICONV_CONST'] = 'const' env.Append(LINKFLAGS = ['-lsocket', '-lnsl'])
With:
if os.sys.platform == 'sunos5': env['ICONV_CONST'] = 'const' env.Append(LINKFLAGS = ['-lsocket', '-lnsl', '-m64']) env.Append(CXXFLAGS = '-m64')
I can't speak to whether this is a good idea on SPARC hardware. The reasoning behind -m64 being off on OSol is apparently because on SPARC, 32 bit code is often faster. I'm on x86-64, so meh.
Hash speed .... is now 300MB/s. Or at least that is what it will push as long as the incoming data is coming in fast enough. This is what "fast hashing" off as related to https://bugs.launchpad.net/linuxdcpp/+bug/600815.
Well. This has been a productive hour. OSol doesn't naturally invoke gcc with -m64. So of course __x86_64__ wasn't defined. So I went into SConstruct and replaced:
env[' ICONV_CONST' ] = 'const'
env.Append( LINKFLAGS = ['-lsocket', '-lnsl'])
env[' ICONV_CONST' ] = 'const'
env.Append( LINKFLAGS = ['-lsocket', '-lnsl', '-m64'])
env.Append( CXXFLAGS = '-m64')
if os.sys.platform == 'sunos5':
With:
if os.sys.platform == 'sunos5':
I can't speak to whether this is a good idea on SPARC hardware. The reasoning behind -m64 being off on OSol is apparently because on SPARC, 32 bit code is often faster. I'm on x86-64, so meh.
Hash speed .... is now 300MB/s. Or at least that is what it will push as long as the incoming data is coming in fast enough. This is what "fast hashing" off as related to https:/ /bugs.launchpad .net/linuxdcpp/ +bug/600815.