diff options
author | Gerald Pfeifer <gerald@FreeBSD.org> | 2013-09-05 22:26:42 +0000 |
---|---|---|
committer | Gerald Pfeifer <gerald@FreeBSD.org> | 2013-09-05 22:26:42 +0000 |
commit | effa8d89e1c272e44ef10e55ffc160f83da2ec54 (patch) | |
tree | 088f0bb9796b56bfcfbd7854a5d361a33612b251 /lang/gcc | |
parent | 8136a2a264180fd8a41dbbb4a7334a2ce8b347fc (diff) | |
download | ports-effa8d89e1c272e44ef10e55ffc160f83da2ec54.tar.gz ports-effa8d89e1c272e44ef10e55ffc160f83da2ec54.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.
libstdc++ does not seem to require adjustments, so PR 161417 may not
be relevant in full.
PR: 161417
Notes
Notes:
svn path=/head/; revision=326453
Diffstat (limited to 'lang/gcc')
-rw-r--r-- | lang/gcc/files/patch-libcpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lang/gcc/files/patch-libcpp b/lang/gcc/files/patch-libcpp new file mode 100644 index 000000000000..80ed1a7f246d --- /dev/null +++ b/lang/gcc/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 |