* configure.ac: Use -melf_*_haiku as target on haiku.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-19 02:15:35 +02:00
parent 8104063ce4
commit e8559d2434
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: Use -melf_*_haiku as target on haiku.
2013-10-18 Vladimir Serbinenko <phcoder@gmail.com> 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
* Makefile.util.def: Add util/setup.c to extra_dist. * Makefile.util.def: Add util/setup.c to extra_dist.

View file

@ -663,6 +663,14 @@ case "$target_os" in
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_x86_64_obsd" TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_x86_64_obsd"
fi fi
;; ;;
haiku*)
if test x"$target_cpu" = xi386; then
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_i386_haiku"
fi
if test x"$target_cpu" = xx86_64; then
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_x86_64_haiku"
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"