[PR gdb/23985] Fix libinproctrace.so build
[deliverable/binutils-gdb.git] / gdb / gdbserver / Makefile.in
index 8cffe3dda2d5d300f5ec71f63b36f6e3045d732d..f5fc55034ee9bb66018a9478e594f6f43cd0feba 100644 (file)
@@ -544,9 +544,15 @@ regdat_sh = $(srcdir)/../regformats/regdat.sh
 
 UST_CFLAGS = $(ustinc) -DCONFIG_UST_GDB_INTEGRATION
 
+# Undo gnulib replacements for the IPA shared library build.
+# The gnulib headers are still needed, but gnulib is not linked
+# into the IPA lib so replacement apis don't work.
+UNDO_GNULIB_CFLAGS = -Drpl_strerror=strerror
+
 # Note, we only build the IPA if -fvisibility=hidden is supported in
 # the first place.
 IPAGENT_CFLAGS = $(INTERNAL_CFLAGS) $(UST_CFLAGS) \
+       $(UNDO_GNULIB_CFLAGS) \
        -fPIC -DIN_PROCESS_AGENT \
        -fvisibility=hidden
 
This page took 0.025534 seconds and 4 git commands to generate.