mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
* configure.in: Make sure that ${CC} can be used to compile an
executable.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jan 12 15:25:35 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* configure.in: Make sure that ${CC} can be used to compile an
|
||||||
|
executable.
|
||||||
|
|
||||||
Sat Jan 6 07:23:33 1996 Michael Meissner <meissner@wogglebug.tiac.net>
|
Sat Jan 6 07:23:33 1996 Michael Meissner <meissner@wogglebug.tiac.net>
|
||||||
|
|
||||||
* Makefile.in (all-gdb): Depend on $(GDB_TK).
|
* Makefile.in (all-gdb): Depend on $(GDB_TK).
|
||||||
|
16
configure.in
16
configure.in
@ -672,6 +672,22 @@ fi
|
|||||||
|
|
||||||
# post-target:
|
# post-target:
|
||||||
|
|
||||||
|
# Make sure that the compiler is able to generate an executable. If it
|
||||||
|
# can't, we are probably in trouble. We don't care whether we can run the
|
||||||
|
# executable--we might be using a cross compiler--we only care whether it
|
||||||
|
# can be created. At this point the main configure script has set CC.
|
||||||
|
echo "int main () { return 0; }" > conftest.c
|
||||||
|
${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
|
||||||
|
if [ $? = 0 ] && [ -s conftest ]; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
|
||||||
|
echo 1>&2 "*** You must set the environment variable CC to a working compiler."
|
||||||
|
rm -f conftest*
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
|
||||||
# Record target_configdirs and the configure arguments in Makefile.
|
# Record target_configdirs and the configure arguments in Makefile.
|
||||||
target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
|
target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
|
||||||
targargs=`echo "${arguments}" | \
|
targargs=`echo "${arguments}" | \
|
||||||
|
Reference in New Issue
Block a user