aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2013-09-06 04:08:27 +0800
committergerald <gerald@FreeBSD.org>2013-09-06 04:08:27 +0800
commit7a9eeff9a9268f098139ac72bf42d5a11dd6d0dd (patch)
treec3655a1253a699d46445e4fe34e94ba7de405059 /lang
parent7402848242996af18ee867865d902f3566929983 (diff)
downloadfreebsd-ports-gnome-7a9eeff9a9268f098139ac72bf42d5a11dd6d0dd.tar.gz
freebsd-ports-gnome-7a9eeff9a9268f098139ac72bf42d5a11dd6d0dd.tar.zst
freebsd-ports-gnome-7a9eeff9a9268f098139ac72bf42d5a11dd6d0dd.zip
Work around a bug in libcpp that pulls in the optional system iconv
if present instead of relying on the port we actually depend on. 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. Interestingly enough, lang/gcc46 and lang/gcc48 did not fail under the same test scenarios and libstdc++ does not seem to require adjustments, so PR 161417 may not be relevant in full. PR: 161417
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc46/files/patch-libcpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lang/gcc46/files/patch-libcpp b/lang/gcc46/files/patch-libcpp
new file mode 100644
index 000000000000..80ed1a7f246d
--- /dev/null
+++ b/lang/gcc46/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