aboutsummaryrefslogtreecommitdiff
path: root/libcpp/expr.cc
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-09-07 13:19:05 +0200
committerTom de Vries <tdevries@suse.de>2022-09-07 13:19:05 +0200
commit04bb15e48ef8dd3d6a5ff30723c603cef3e0a3c6 (patch)
tree99044e58ef203995ee12a3a984fe0d1f35b2757c /libcpp/expr.cc
parent22cefe5c22a90d20e2d9f629402b0522c03fa59c (diff)
downloadgcc-04bb15e48ef8dd3d6a5ff30723c603cef3e0a3c6.zip
gcc-04bb15e48ef8dd3d6a5ff30723c603cef3e0a3c6.tar.gz
gcc-04bb15e48ef8dd3d6a5ff30723c603cef3e0a3c6.tar.bz2
[gdb/build] Fix build breaker with --enable-shared
When building gdb with --enable-shared, I run into: ... ld: build/zlib/libz.a(libz_a-inffast.o): relocation R_X86_64_32S against \ `.rodata' can not be used when making a shared object; recompile with -fPIC ld: build/zlib/libz.a(libz_a-inflate.o): warning: relocation against \ `inflateResetKeep' in read-only section `.text' collect2: error: ld returned 1 exit status make[3]: *** [libbfd.la] Error 1 ... This is a regression since commit a08bdb159bb ("[gdb/build] Fix gdbserver build with -fsanitize=thread"). The problem is that a single case statement in configure is shared to handle special requirements for both the host libiberty and host zlib, which has the effect that only one is handled. Fix this by handling libiberty and zlib each in its own case statement. Build on x86_64-linux, with and without --enable-shared. ChangeLog: 2022-09-07 Tom de Vries <tdevries@suse.de> * configure.ac: Set extra_host_libiberty_configure_flags and extra_host_zlib_configure_flags in separate case statements. * configure: Regenerate.
Diffstat (limited to 'libcpp/expr.cc')
0 files changed, 0 insertions, 0 deletions