mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
package/gdb: fix gnulib issue with musl and uClibc toolchains again
The commit [1] doesn't fix this issue for all cases (it doesn't work when BR2_PACKAGE_GDB_DEBUGGER=y). So, leave the configure script alone and override gl_cv_func_gettimeofday_clobber from GDB_MAKE_ENV. [1]560334bb2aFixes: http://autobuild.buildroot.net/results/719/719a441421030b79c0aa1bbfb707130f3ac87338 Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> (cherry picked from commitfaf38b78ae) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
34345f1b03
commit
de33cffb66
@@ -67,13 +67,6 @@ GDB_DISABLE_BINUTILS_CONF_OPTS = \
|
|||||||
--disable-ld \
|
--disable-ld \
|
||||||
--disable-gas
|
--disable-gas
|
||||||
|
|
||||||
# Starting with gdb 7.11, the bundled gnulib tries to use
|
|
||||||
# rpl_gettimeofday (gettimeofday replacement) due to the code being
|
|
||||||
# unable to determine if the replacement function should be used or
|
|
||||||
# not when cross-compiling with uClibc or musl as C libraries. So use
|
|
||||||
# gl_cv_func_gettimeofday_clobber=no to not use rpl_gettimeofday,
|
|
||||||
# assuming musl and uClibc have a properly working gettimeofday
|
|
||||||
# implementation.
|
|
||||||
GDB_CONF_ENV = \
|
GDB_CONF_ENV = \
|
||||||
ac_cv_type_uintptr_t=yes \
|
ac_cv_type_uintptr_t=yes \
|
||||||
gt_cv_func_gettext_libintl=yes \
|
gt_cv_func_gettext_libintl=yes \
|
||||||
@@ -83,8 +76,18 @@ GDB_CONF_ENV = \
|
|||||||
bash_cv_must_reinstall_sighandlers=no \
|
bash_cv_must_reinstall_sighandlers=no \
|
||||||
bash_cv_func_sigsetjmp=present \
|
bash_cv_func_sigsetjmp=present \
|
||||||
bash_cv_have_mbstate_t=yes \
|
bash_cv_have_mbstate_t=yes \
|
||||||
gdb_cv_func_sigsetjmp=yes \
|
gdb_cv_func_sigsetjmp=yes
|
||||||
gl_cv_func_gettimeofday_clobber=no
|
|
||||||
|
# Starting with gdb 7.11, the bundled gnulib tries to use
|
||||||
|
# rpl_gettimeofday (gettimeofday replacement) due to the code being
|
||||||
|
# unable to determine if the replacement function should be used or
|
||||||
|
# not when cross-compiling with uClibc or musl as C libraries. So use
|
||||||
|
# gl_cv_func_gettimeofday_clobber=no to not use rpl_gettimeofday,
|
||||||
|
# assuming musl and uClibc have a properly working gettimeofday
|
||||||
|
# implementation. It needs to be passed to GDB_MAKE_ENV and not
|
||||||
|
# GDB_CONF_ENV, because otherwise it does not get passed to the
|
||||||
|
# configure script of nested packages.
|
||||||
|
GDB_MAKE_ENV = gl_cv_func_gettimeofday_clobber=no
|
||||||
|
|
||||||
# The shared only build is not supported by gdb, so enable static build for
|
# The shared only build is not supported by gdb, so enable static build for
|
||||||
# build-in libraries with --enable-static.
|
# build-in libraries with --enable-static.
|
||||||
|
|||||||
Reference in New Issue
Block a user