* 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

@ -655,6 +655,14 @@ case "$target_os" in
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_x86_64_fbsd"
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
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_i386"