From e8559d2434becae85b999aa1485a0a3841252d39 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sat, 19 Oct 2013 02:15:35 +0200 Subject: [PATCH] * configure.ac: Use -melf_*_haiku as target on haiku. --- ChangeLog | 4 ++++ configure.ac | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index ff2c7fbe2..272f4d6c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-10-18 Vladimir Serbinenko + + * configure.ac: Use -melf_*_haiku as target on haiku. + 2013-10-18 Vladimir Serbinenko * Makefile.util.def: Add util/setup.c to extra_dist. diff --git a/configure.ac b/configure.ac index 8cacd47ed..c9ee9f842 100644 --- a/configure.ac +++ b/configure.ac @@ -663,6 +663,14 @@ case "$target_os" in TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_x86_64_obsd" 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 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,-melf_i386"