summaryrefslogtreecommitdiff
path: root/debian/patches/libcc1-compiler-name.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-05-13 13:54:49 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-05-13 13:54:49 +0300
commit42156b5190f4fa150e1fab6777eb81e69d4db8c9 (patch)
tree3bf47de81cf1f89892789535a036d2d55d93a136 /debian/patches/libcc1-compiler-name.diff
downloadgcc-6-debian.tar.gz
Imported gcc-6 (6.3.0-17)debian/6.3.0-17debian
Diffstat (limited to 'debian/patches/libcc1-compiler-name.diff')
-rw-r--r--debian/patches/libcc1-compiler-name.diff24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/libcc1-compiler-name.diff b/debian/patches/libcc1-compiler-name.diff
new file mode 100644
index 0000000..242f191
--- /dev/null
+++ b/debian/patches/libcc1-compiler-name.diff
@@ -0,0 +1,24 @@
+# DP: Don't add the configured prefix to libcc1's compiler name.
+
+--- a/src/libcc1/Makefile.am
++++ b/src/libcc1/Makefile.am
+@@ -49,7 +49,7 @@
+ # Put this in a header so we don't run sed for each compilation. This
+ # is also simpler to debug as one can easily see the constant.
+ compiler-name.h: Makefile
+- echo "#define COMPILER_NAME \"`echo gcc | sed '$(transform)'`\"" > $@
++ echo "#define COMPILER_NAME \"`echo gcc-6`\"" > $@
+
+
+ shared_source = callbacks.cc callbacks.hh connection.cc connection.hh \
+--- a/src/libcc1/Makefile.in
++++ b/src/libcc1/Makefile.in
+@@ -674,7 +674,7 @@
+ # Put this in a header so we don't run sed for each compilation. This
+ # is also simpler to debug as one can easily see the constant.
+ compiler-name.h: Makefile
+- echo "#define COMPILER_NAME \"`echo gcc | sed '$(transform)'`\"" > $@
++ echo "#define COMPILER_NAME \"`echo gcc-6`\"" > $@
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.