summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsezero <sezero@users.sourceforge.net>2017-01-13 17:51:06 +0300
committerErik de Castro Lopo <erikd@mega-nerd.com>2017-01-14 18:32:49 +1100
commit31b219f0bf196d50766a2bd7a280f021d63bf6b0 (patch)
tree1180f747e3fee8d7128ccc107b9c3c0e56d66a37
parentc6318e9dd3f7a91f40340911bcf57bf36768910e (diff)
downloadflac-31b219f0bf196d50766a2bd7a280f021d63bf6b0.tar.gz
Support nasm coff obj format for djgpp
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
-rw-r--r--configure.ac1
-rw-r--r--src/libFLAC/ia32/nasm.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 235d2717..67e53cfc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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)
diff --git a/src/libFLAC/ia32/nasm.h b/src/libFLAC/ia32/nasm.h
index ff479bf7..7850cd21 100644
--- a/src/libFLAC/ia32/nasm.h
+++ b/src/libFLAC/ia32/nasm.h
@@ -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