From 4cd9e768a1d31732df0a9029f33dc1fd34f69b8c Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sat, 15 Sep 2007 07:07:46 +0000 Subject: [PATCH] Fixed yasm/nasm compilation on x86_64. --- configure.ad | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/configure.ad b/configure.ad index 8ee9d61b..1ede5e30 100644 --- a/configure.ad +++ b/configure.ad @@ -361,13 +361,21 @@ have_assembler=false if test x$want_asm = xtrue; then AC_PATH_PROG([NASM], [nasm], [no]) if test "x$NASM" != "xno"; then - SILC_ASSEMBLER="$NASM -O2 -felf" + if test x$cpu_x86_64 = xtrue; then + SILC_ASSEMBLER="$NASM -O2 -felf64" + else + SILC_ASSEMBLER="$NASM -O2 -felf" + fi have_assembler=true fi AC_PATH_PROG([YASM], [yasm], [no]) if test "x$YASM" != "xno"; then - SILC_ASSEMBLER="$YASM -Xgnu -felf" + if test x$cpu_x86_64 = xtrue; then + SILC_ASSEMBLER="$YASM -Xgnu -felf64" + else + SILC_ASSEMBLER="$YASM -Xgnu -felf64" + fi have_assembler=true fi fi -- 2.24.0