From be00e306958b2870332202b8c3907d1da2ea0e66 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Thu, 21 Jun 2001 06:34:15 +0000 Subject: [PATCH] add aoutb support for openbsd --- configure.in | 1 + src/libFLAC/ia32/nasm.h | 5 +++++ 2 files changed, 6 insertions(+) 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