summaryrefslogtreecommitdiffstats
path: root/source-builder/config
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2020-01-21 14:46:16 +1100
committerChris Johns <chrisj@rtems.org>2020-01-21 14:46:16 +1100
commit599c4d7c87fab531014a614f2a32b56be0a3ce28 (patch)
treee6f5ee14c59aa67a7a3020775770e177e107960d /source-builder/config
parent5: Update rtems-tools (diff)
downloadrtems-source-builder-599c4d7c87fab531014a614f2a32b56be0a3ce28.tar.bz2
freebsd: Fix GDB building on some 12 and higher versions
Diffstat (limited to 'source-builder/config')
-rw-r--r--source-builder/config/gdb-common-1.cfg10
1 files changed, 10 insertions, 0 deletions
diff --git a/source-builder/config/gdb-common-1.cfg b/source-builder/config/gdb-common-1.cfg
index 40cba4b..5847f11 100644
--- a/source-builder/config/gdb-common-1.cfg
+++ b/source-builder/config/gdb-common-1.cfg
@@ -192,6 +192,15 @@ URL: http://www.gnu.org/software/gdb/
%endif
#
+# Fix the mess iconv is on FreeBSD 10.0 and higher.
+#
+%if %{defined iconv_prefix}
+ %define iconv_opts --with-libiconv-prefix=%{iconv_prefix}
+%else
+ %define iconv_opts %{nil}
+%endif
+
+#
#
# Prepare the source code.
#
@@ -239,6 +248,7 @@ URL: http://www.gnu.org/software/gdb/
--without-zlib \
--with-expat \
--with-guile=no \
+ %{iconv_opts} \
%{!?without_python:%{with_python_option}} \
--prefix=%{_prefix} --bindir=%{_bindir} \
--exec-prefix=%{_exec_prefix} \