$OpenBSD: patch-build_make_configure_sh,v 1.2 2010/10/31 21:05:38 ckuethe Exp $
--- build/make/configure.sh.orig	Thu Oct 28 09:14:14 2010
+++ build/make/configure.sh	Thu Oct 28 21:59:18 2010
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!${BASH}
 ##
 ##  configure.sh
 ##
@@ -857,8 +857,6 @@ process_common_toolchain() {
                 esac
                 ;;
             gcc*)
-                add_cflags  -m${bits}
-                add_ldflags -m${bits}
                 link_with_cc=gcc
                 tune_cflags="-march="
             setup_gnu_toolchain
@@ -952,7 +950,7 @@ EOF
     if enabled multithread; then
         case ${toolchain} in
             *-win*);;
-            *) check_header pthread.h && add_extralibs -lpthread
+            *) check_header pthread.h && add_extralibs -pthread
         esac
     fi
 
