aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcc42
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2013-09-07 02:11:06 +0800
committergerald <gerald@FreeBSD.org>2013-09-07 02:11:06 +0800
commit4c68201ad36263935b34ba2c3242775a361f99a0 (patch)
tree88ebfd8adb1e7ec75c7bad41d2e17b44805faf27 /lang/gcc42
parentadf2830fecff4e9a2c90f414e93b740e98a2ad7b (diff)
downloadfreebsd-ports-gnome-4c68201ad36263935b34ba2c3242775a361f99a0.tar.gz
freebsd-ports-gnome-4c68201ad36263935b34ba2c3242775a361f99a0.tar.zst
freebsd-ports-gnome-4c68201ad36263935b34ba2c3242775a361f99a0.zip
Work around a bug in libcpp that pulls in the optional system iconv
if present (even if the libiconv port is present) and fails using that. The issue is that /usr/include/iconv.h has #include <stdbool.h> which in turn, since both are included very late in the game, conflicts with similar definintions by libcpp itself. libstdc++ does not seem to require adjustments, so PR 161417 may not be relevant in full. PR: 161417
Diffstat (limited to 'lang/gcc42')
-rw-r--r--lang/gcc42/files/patch-libcpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lang/gcc42/files/patch-libcpp b/lang/gcc42/files/patch-libcpp
new file mode 100644
index 000000000000..80ed1a7f246d
--- /dev/null
+++ b/lang/gcc42/files/patch-libcpp
@@ -0,0 +1,10 @@
+--- libcpp/internal.h 2012-07-30 09:24:59.000000000 +0000
++++ libcpp/internal.h 2013-09-04 00:41:26.000000000 +0000
+@@ -27,6 +27,7 @@
+ #include "cpp-id-data.h"
+
+ #if HAVE_ICONV
++#define __bool_true_false_are_defined
+ #include <iconv.h>
+ #else
+ #define HAVE_ICONV 0