Support nasm coff obj format for djgpp

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
This commit is contained in:
sezero
2017-01-13 17:51:06 +03:00
committed by Erik de Castro Lopo
parent c6318e9dd3
commit 31b219f0bf
2 changed files with 6 additions and 0 deletions

View File

@@ -163,6 +163,7 @@ case "$host" in
*-*-cygwin|*mingw*) OBJ_FORMAT=win32 ;;
*-*-darwin*) OBJ_FORMAT=macho ;;
*emx*) OBJ_FORMAT=aout ;;
*djgpp) OBJ_FORMAT=coff ;;
*) OBJ_FORMAT=elf ;;
esac
AC_SUBST(OBJ_FORMAT)

View File

@@ -46,6 +46,11 @@
%idefine code_section section .text
%idefine data_section section .data
%idefine bss_section section .bss
%elifdef OBJ_FORMAT_coff
%define FLAC__PUBLIC_NEEDS_UNDERSCORE
%idefine code_section section .text
%idefine data_section section .data
%idefine bss_section section .bss
%elifdef OBJ_FORMAT_macho
%define FLAC__PUBLIC_NEEDS_UNDERSCORE
%idefine code_section section .text