make dynlink.lo depend on reloc.h in makefile
[musl] / configure
index 7e5a8df..6daa5b3 100755 (executable)
--- a/configure
+++ b/configure
@@ -197,6 +197,7 @@ case "$target" in
 arm*) ARCH=arm ;;
 i?86*) ARCH=i386 ;;
 x86_64*) ARCH=x86_64 ;;
+mips-*) ARCH=mips ;;
 unknown) fail "$0: unable to detect target arch; try $0 --target=..." ;;
 *) fail "$0: unknown or unsupported target \"$target\"" ;;
 esac
@@ -209,7 +210,7 @@ tryflag CFLAGS_C99FSE -nostdinc
 tryflag CFLAGS_C99FSE -ffreestanding \
 || tryflag CFLAGS_C99FSE -fno-builtin
 tryflag CFLAGS_C99FSE -fexcess-precision=standard \
-|| tryflag CFLAGS_C99FSE -ffloat-store
+|| { test "$ARCH" = i386 && tryflag CFLAGS_C99FSE -ffloat-store ; }
 tryflag CFLAGS_C99FSE -frounding-math
 
 #
@@ -274,6 +275,11 @@ printf "warning: disabling dynamic linking support\n"
 shared=no
 }
 
+test "$ARCH" = "mips" && {
+printf "warning: disabling dynamic linking support on mips (not yet supported)\n"
+shared=no
+}
+
 
 printf "creating config.mak... "