diff --git a/configure.in b/configure.in index 41b8bb59..deeb89b7 100644 --- a/configure.in +++ b/configure.in @@ -40,6 +40,7 @@ AM_CONDITIONAL(FLaC__CPU_IA32, test x$cpu_ia32 = xtrue) AM_CONDITIONAL(FLaC__CPU_PPC, test x$cpu_ppc = xtrue) AM_CONDITIONAL(FLaC__CPU_SPARC, test x$cpu_sparc = xtrue) case "$host" in + i[3-6]86-*-openbsd*) OBJ_FORMAT=aoutb ;; *) OBJ_FORMAT=elf ;; esac AC_SUBST(OBJ_FORMAT) diff --git a/src/libFLAC/ia32/nasm.h b/src/libFLAC/ia32/nasm.h index 0814826b..cfa3d3e6 100644 --- a/src/libFLAC/ia32/nasm.h +++ b/src/libFLAC/ia32/nasm.h @@ -28,6 +28,11 @@ %idefine code_section section .text %idefine data_section section .data %idefine bss_section section .bss +%elifdef OBJ_FORMAT_aoutb + %define FLAC__PUBLIC_NEEDS_UNDERSCORE + %idefine code_section section .text + %idefine data_section section .data + %idefine bss_section section .bss %elifdef OBJ_FORMAT_elf %idefine code_section section .text align=16 %idefine data_section section .data align=32