aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <sfabbro@uvic.ca>2012-07-11 15:16:41 -0700
committerSebastien Fabbro <sfabbro@uvic.ca>2012-07-11 15:16:41 -0700
commit6a4cd09b4ded0b370af9056d5de13a9061627035 (patch)
treed045b9b891bb267aad477cc2b260cdbf3d144ab2 /dev-libs/double-conversion/files
parentsci-mathematics/dsfmt: Initial import (diff)
downloadsci-6a4cd09b4ded0b370af9056d5de13a9061627035.tar.gz
sci-6a4cd09b4ded0b370af9056d5de13a9061627035.tar.bz2
sci-6a4cd09b4ded0b370af9056d5de13a9061627035.zip
dev-libs/double-conversion: Initial import
(Portage version: 2.2.01.20757-prefix/git/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-libs/double-conversion/files')
-rw-r--r--dev-libs/double-conversion/files/double-conversion-1.1-scons.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-libs/double-conversion/files/double-conversion-1.1-scons.patch b/dev-libs/double-conversion/files/double-conversion-1.1-scons.patch
new file mode 100644
index 000000000..eea519f5f
--- /dev/null
+++ b/dev-libs/double-conversion/files/double-conversion-1.1-scons.patch
@@ -0,0 +1,26 @@
+--- SConstruct.orig 2012-07-11 14:21:27.783375399 -0700
++++ SConstruct 2012-07-11 15:10:28.400764573 -0700
+@@ -1,3 +1,4 @@
++import os
+ double_conversion_sources = ['src/' + x for x in SConscript('src/SConscript')]
+ double_conversion_test_sources = ['test/cctest/' + x for x in SConscript('test/cctest/SConscript')]
+ test = double_conversion_sources + double_conversion_test_sources
+@@ -7,8 +8,16 @@
+ optimize = ARGUMENTS.get('optimize', 0)
+ if int(debug):
+ env.Append(CCFLAGS = '-g -Wall -Werror')
+-if int(optimize):
++elif int(optimize):
+ env.Append(CCFLAGS = '-O3')
++else:
++ env.Append(CCFLAGS = os.environ['CXXFLAGS'])
++env.Append(LINKFLAGS = os.environ['LDFLAGS'])
+ print double_conversion_sources
+ print double_conversion_test_sources
+-env.Program('run_tests', double_conversion_sources + double_conversion_test_sources)
++libname = 'double-conversion'
++# tofix: line below only works for linux?
++env.Append(SHLINKFLAGS=" -Wl,-soname=lib"+libname+".so ")
++shlib = env.SharedLibrary(libname, [env.SharedObject(src) for src in double_conversion_sources])
++env.StaticLibrary(libname, [env.StaticObject(src) for src in double_conversion_sources])
++env.Program('run_tests', double_conversion_test_sources, LIBS=[shlib])