summarylogtreecommitdiffstats
path: root/patch_gcc6.patch
diff options
context:
space:
mode:
authorvaldar2016-05-31 07:50:41 +0100
committervaldar2016-05-31 07:50:41 +0100
commit62796e0e628ca7e31d4d709634da51accc2aee9b (patch)
tree8f7c07b6ff35ed488b00b16feb538938f392de87 /patch_gcc6.patch
parentaf3af3ffeaa4806b8831b669f9955a739fa943bd (diff)
downloadaur-62796e0e628ca7e31d4d709634da51accc2aee9b.tar.gz
Patch added to make it compile with ggc 6.x
Diffstat (limited to 'patch_gcc6.patch')
-rw-r--r--patch_gcc6.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/patch_gcc6.patch b/patch_gcc6.patch
new file mode 100644
index 000000000000..865c91c97f98
--- /dev/null
+++ b/patch_gcc6.patch
@@ -0,0 +1,28 @@
+diff --git a/scons/boost.py b/scons/boost.py
+index d48829d..e0dfbcc 100644
+--- a/scons/boost.py
++++ b/scons/boost.py
+@@ -1,6 +1,6 @@
+ # vi: syntax=python:et:ts=4
+ from config_check_utils import find_include
+-from os.path import join, dirname, basename
++from os.path import join, dirname, basename, samefile
+ from glob import glob
+ import re
+
+@@ -69,10 +69,11 @@ def CheckBoost(context, boost_lib, require_version = None, header_only = False):
+ header_name = boost_headers.get(boost_lib, boost_lib + ".hpp")
+ libname = "boost_" + boost_lib + env.get("boost_suffix", "")
+
+- if env["fast"]:
+- env.AppendUnique(CXXFLAGS = ["-isystem", boostdir], LIBPATH = [boostlibdir])
+- else:
+- env.AppendUnique(CPPPATH = [boostdir], LIBPATH = [boostlibdir])
++ if not samefile(boostdir, "/usr/include"):
++ if env["fast"]:
++ env.AppendUnique(CXXFLAGS = ["-isystem", boostdir], LIBPATH = [boostlibdir])
++ else:
++ env.AppendUnique(CPPPATH = [boostdir], LIBPATH = [boostlibdir])
+ if not header_only:
+ env.AppendUnique(LIBS = [libname])
+ if boost_lib == "thread" and env["PLATFORM"] == "posix": \ No newline at end of file