diff options
author | Chris Johns <chrisj@rtems.org> | 2023-03-09 14:28:55 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2023-03-09 15:45:18 +1100 |
commit | e5abdec8534849c9362674e867154121e917aead (patch) | |
tree | 45f46a271ecffe108c6edd4ab5e82e7139d3ff90 /source-builder | |
parent | 6: Update GCC 10 and 12 (diff) | |
download | rtems-source-builder-e5abdec8534849c9362674e867154121e917aead.tar.bz2 |
6/gdb: fix building on FreeBSD 13.1
See https://sourceware.org/bugzilla/show_bug.cgi?id=30214
Closes #4872
Diffstat (limited to 'source-builder')
-rw-r--r-- | source-builder/sb/freebsd.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/source-builder/sb/freebsd.py b/source-builder/sb/freebsd.py index 472f670..628ef22 100644 --- a/source-builder/sb/freebsd.py +++ b/source-builder/sb/freebsd.py @@ -101,22 +101,24 @@ def load(): cxx = '/usr/bin/clang++' if check.check_exe(cxx, cxx): raise error.general('no valid c++ found') - # - # Assume the compiler is clang and so we need to increase - # bracket depth build build the gcc ARM compiler. - # - defines['build_cflags'] = '-O2 -pipe -fbracket-depth=1024' - defines['build_cxxflags'] = '-O2 -pipe -fbracket-depth=1024' cvs = 'cvs' if check.check_exe(cvs, cvs): defines['__cvs'] = cvs + defines['build_cflags'] = '-O2 -pipe' + defines['build_cxxflags'] = '-O2 -pipe' + if fb_version <= 12: + # + # Assume the compiler is clang and so we need to increase + # bracket depth build build the gcc ARM compiler. + # + defines['build_cflags'] += ' -fbracket-depth=1024' + defines['build_cxxflags'] += ' -fbracket-depth=1024' # # Fix the mess iconv is on FreeBSD 10.0 and higher. # defines['iconv_includes'] = ('none', 'none', '%{host_includes} %{host_ldflags}') if fb_version >= 12: defines['iconv_prefix'] = ('none', 'none', '%{_usr}') - # # On 11.0+ makeinfo and install-info have moved to /usr/local/... # |