* configure.ac: Use -melf_*_obsd on openbsd.

This commit is contained in:
Ilya Bakulin 2013-10-12 08:08:11 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent ff2d4dc41c
commit 6d0740e8ca
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
* configure.ac: Use -melf_*_obsd on openbsd.
2013-10-12 Vladimir Serbinenko <phcoder@gmail.com> 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer. * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.

View file

@ -655,6 +655,14 @@ case "$target_os" in
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_x86_64_fbsd" TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_x86_64_fbsd"
fi fi
;; ;;
openbsd*)
if test x"$target_cpu" = xi386; then
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_i386_obsd"
fi
if test x"$target_cpu" = xx86_64; then
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_x86_64_obsd"
fi
;;
*) *)
if test x"$target_cpu" = xi386; then if test x"$target_cpu" = xi386; then
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_i386" TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_i386"