* configure.ac: On FreeBSD use -melf_*_fbsd format.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-09-22 03:26:11 +02:00
parent 207862dda4
commit 15ce95c40c
2 changed files with 24 additions and 8 deletions

View file

@ -1,3 +1,7 @@
2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: On FreeBSD use -melf_*_fbsd format.
2013-09-21 Ales Nesrsta <starous@volny.cz>
* grub-core/bus/usb/ehci.c: Correceted EHCI QH handling (async./sync.)

View file

@ -633,14 +633,26 @@ if test "x$target_m64" = x1; then
TARGET_MODULE_FORMAT="elf64"
fi
if test x"$target_os" != xcygwin; then
case "$target_os" in
cygwin)
;;
freebsd)
if test x"$target_cpu" = xi386; then
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_i386_fbsd"
fi
if test x"$target_cpu" = xx86_64; then
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_x86_64_fbsd"
fi
;;
*)
if test x"$target_cpu" = xi386; then
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_i386"
fi
if test x"$target_cpu" = xx86_64; then
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_x86_64"
fi
fi
;;
esac
if test "$target_cpu" = x86_64; then
# Use large model to support 4G memory