projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed yasm/nasm compilation on x86_64.
[silc.git]
/
configure.ad
diff --git
a/configure.ad
b/configure.ad
index f719d7a3aeb9dfd5fa5745a59592f7496ccf00a3..1ede5e3075984a99ebfb9a3b94fcd1113f876c87 100644
(file)
--- a/
configure.ad
+++ b/
configure.ad
@@
-33,6
+33,10
@@
AC_PATH_PROG(sedpath, sed)
# Put here any platform specific stuff
#
case "$target" in
# Put here any platform specific stuff
#
case "$target" in
+ *-*-linux*)
+ check_threads=true
+ CFLAGS=`echo $CFLAGS -D_GNU_SOURCE`
+ ;;
*-*-freebsd*)
check_threads=true
;;
*-*-freebsd*)
check_threads=true
;;
@@
-357,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
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
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
have_assembler=true
fi
fi