forked from Imagelibrary/binutils-gdb
sim: rename tconfig.in to tconfig.h
Rather than manually include tconfig.h when we think we'll need it (which is error prone as it can define symbols we expect from config.h), have it be included directly by config.h. Since we know we have to include that header everywhere already, this will make sure tconfig.h isn't missed. It should also be fine as tconfig.h is supposed to be simple and only set up a few core defines for the target. This allows us to stop symlinking it in place all the time and just use it straight out of the respective source directory.
This commit is contained in:
14
sim/mips/configure
vendored
14
sim/mips/configure
vendored
@@ -8318,6 +8318,8 @@ else
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
# Some of the common include files depend on bfd.h, and bfd.h checks
|
||||
# that config.h is included first by testing that the PACKAGE macro
|
||||
# is defined.
|
||||
@@ -12400,7 +12402,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 12403 "configure"
|
||||
#line 12405 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@@ -12506,7 +12508,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 12509 "configure"
|
||||
#line 12511 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@@ -12987,14 +12989,6 @@ _ACEOF
|
||||
sim_link_files=
|
||||
sim_link_links=
|
||||
|
||||
sim_link_links=tconfig.h
|
||||
if test -f ${srcdir}/tconfig.in
|
||||
then
|
||||
sim_link_files=tconfig.in
|
||||
else
|
||||
sim_link_files=../common/tconfig.in
|
||||
fi
|
||||
|
||||
# targ-vals.def points to the libc macro description file.
|
||||
case "${target}" in
|
||||
*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
|
||||
|
||||
Reference in New Issue
Block a user