 -	LDFLAGS="-m32"
 +	CFLAGS="$default_CFLAGS"
 +	LDFLAGS=
- 	install_subdir="riscv32-unknown-elf"
+ 	install_subdir="`echo $host_alias | sed -e 's/64/32/g'`"
  	;;
    *)

-	LDFLAGS="-m32"
+	CFLAGS="$default_CFLAGS"
+	LDFLAGS=
 	install_subdir="riscv32-unknown-elf"
 	;;
   *)
diff --git a/configure.ac b/configure.ac
index 1bf0326..2ae7d43 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,8 +86,8 @@ AC_ARG_ENABLE([32bit],
 case "${BUILD_32BIT}" in
   yes|default)
 	echo "Building 32-bit pk"

diff --git a/configure b/configure
index 5af7cee..029329a 100755
--- a/configure
+++ b/configure
@@ -4084,8 +4084,8 @@ fi
 case "${BUILD_32BIT}" in
   yes|default)
 	echo "Building 32-bit pk"
