mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 01:29:27 +00:00
2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
* configure.ac: Check ld. Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS respectively, before checking endianness and sizes. * Makefile.in (LD): New variable.
This commit is contained in:
1 parent
abdfc3c54e
commit
9962ed9907
5 files changed
+111
-4
No files matched your search
+9
-2
@@ -95,6 +95,7 @@ AC_CHECK_TOOL(OBJCOPY, objcopy)
|
||||
pupa_PROG_OBJCOPY_ABSOLUTE
|
||||
AC_CHECK_TOOL(STRIP, strip)
|
||||
AC_CHECK_TOOL(NM, nm)
|
||||
AC_CHECK_TOOL(LD, ld)
|
||||
|
||||
# This is not a "must".
|
||||
AC_PATH_PROG(RUBY, ruby)
|
||||
@@ -109,12 +110,18 @@ else
|
||||
fi
|
||||
|
||||
# Test the C compiler for the build environment.
|
||||
pupa_tmp_CC="$CC"
|
||||
tmp_CC="$CC"
|
||||
tmp_CFLAGS="$CFLAGS"
|
||||
tmp_CPPFLAGS="$CPPFLAGS"
|
||||
CC="$BUILD_CC"
|
||||
CFLAGS="$BUILD_CFLAGS"
|
||||
CPPFLAGS="$BUILD_CPPFLAGS"
|
||||
AC_C_BIGENDIAN
|
||||
AC_CHECK_SIZEOF(void *)
|
||||
AC_CHECK_SIZEOF(long)
|
||||
CC="$pupa_tmp_CC"
|
||||
CC="$tmp_CC"
|
||||
CFLAGS="$tmp_CFLAGS"
|
||||
CPPFLAGS="$tmp_CPPFLAGS"
|
||||
|
||||
# Output files.
|
||||
AC_CONFIG_LINKS([include/pupa/cpu:include/pupa/$host_cpu
|
||||
|
||||
Reference in new issue
Block a user