Commit 66681e0a authored by Niels Möller's avatar Niels Möller
Browse files

Use $host_cpu, not $host, when setting up the assembler path. Use

$host_os, not uname, when setting up shared library flags.

Rev: src/nettle/configure.ac:1.69
parent bb4ecdbb
...@@ -102,11 +102,11 @@ fi ...@@ -102,11 +102,11 @@ fi
# Select assembler code # Select assembler code
asm_path= asm_path=
case "$host" in case "$host_cpu" in
[i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*]) [i?86* | k[5-8]* | pentium* | athlon])
asm_path=x86 asm_path=x86
;; ;;
*sparc*-*-*) *sparc*)
AC_TRY_COMPILE([ AC_TRY_COMPILE([
#if defined(__sparcv9) || defined(__arch64__) #if defined(__sparcv9) || defined(__arch64__)
#error 64-bit sparc #error 64-bit sparc
...@@ -148,8 +148,8 @@ LSH_CCPIC ...@@ -148,8 +148,8 @@ LSH_CCPIC
SHLIBCFLAGS="$CCPIC" SHLIBCFLAGS="$CCPIC"
case `uname -sr` in case "$host_os" in
CYGWIN*) cygwin*)
SHLIBFORLINK='cygnettle-$(SHLIBMAJOR)-$(SHLIBMINOR).dll' SHLIBFORLINK='cygnettle-$(SHLIBMAJOR)-$(SHLIBMINOR).dll'
SHLIBSONAME='' SHLIBSONAME=''
SHLIBFILE='libnettle.dll.a' SHLIBFILE='libnettle.dll.a'
...@@ -356,6 +356,10 @@ if test x$GCC = xyes ; then ...@@ -356,6 +356,10 @@ if test x$GCC = xyes ; then
else else
CFLAGS="$CFLAGS -ggdb3" CFLAGS="$CFLAGS -ggdb3"
fi fi
# FIXME: It would be better to actually test if this option works and/or is needed.
if "$CC" --version | grep 'gcc.* 4\.' 1>/dev/null 2>&1; then
CFLAGS="$CFLAGS -Wno-pointer-sign"
fi
CFLAGS="$CFLAGS -Wall -W \ CFLAGS="$CFLAGS -Wall -W \
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
-Wpointer-arith -Wbad-function-cast -Wnested-externs" -Wpointer-arith -Wbad-function-cast -Wnested-externs"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment