$OpenBSD: patch-build_make_configure_sh,v 1.3 2011/03/17 16:54:16 edd Exp $
--- build/make/configure.sh.orig	Fri Mar  4 15:40:37 2011
+++ build/make/configure.sh	Tue Mar  8 21:12:29 2011
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!${BASH}
 ##
 ##  configure.sh
 ##
@@ -880,8 +880,6 @@ process_common_toolchain() {
                 esac
                 ;;
             gcc*)
-                add_cflags  -m${bits}
-                add_ldflags -m${bits}
                 link_with_cc=gcc
                 tune_cflags="-march="
             setup_gnu_toolchain
@@ -975,7 +973,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
 
