$OpenBSD: patch-configure,v 1.50 2016/12/22 09:05:06 ajacoutot Exp $
--- configure.orig	Tue Dec  6 22:54:54 2016
+++ configure	Sat Dec 10 23:54:52 2016
@@ -4740,10 +4740,6 @@ fi
 if test "$gcov" = "yes" ; then
   CFLAGS="-fprofile-arcs -ftest-coverage -g $CFLAGS"
   LDFLAGS="-fprofile-arcs -ftest-coverage $LDFLAGS"
-elif test "$fortify_source" = "yes" ; then
-  CFLAGS="-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS"
-elif test "$debug" = "no"; then
-  CFLAGS="-O2 $CFLAGS"
 fi
 
 ##########################################
@@ -4892,7 +4888,7 @@ if test \( "$cpu" = "i386" -o "$cpu" = "x86_64" \) -a 
     # Different host OS linkers have different ideas about the name of the ELF
     # emulation. Linux and OpenBSD use 'elf_i386'; FreeBSD uses the _fbsd
     # variant; and Windows uses i386pe.
-    for emu in elf_i386 elf_i386_fbsd i386pe; do
+    for emu in elf_i386 elf_i386_fbsd elf_i386_obsd i386pe; do
         if "$ld" -verbose 2>&1 | grep -q "^[[:space:]]*$emu[[:space:]]*$"; then
             ld_i386_emulation="$emu"
             roms="optionrom"
