+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.)
TARGET_MODULE_FORMAT="elf64"
fi
-if test x"$target_os" != xcygwin; then
- 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
+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
+ ;;
+esac
if test "$target_cpu" = x86_64; then
# Use large model to support 4G memory