From 51a4282abc1cffab18f58d19334b78b662a8c6d7 Mon Sep 17 00:00:00 2001 From: DRC Date: Tue, 22 Mar 2011 09:19:29 +0000 Subject: [PATCH] MinGW64 no longer prefixes symbols with underscores by default --- ChangeLog.txt | 8 ++++++++ simd/jsimdext.inc | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 553889b7..92b28590 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -35,6 +35,14 @@ by tjEncodeYUV(). the unaccelerated decoder and throws a warning if an unexpected marker is found in the middle of the JPEG data stream. +[3] Older versions of MinGW64 prefixed symbol names with underscores by +default, which differed from the behavior of 64-bit Visual C++. MinGW64 1.0 +has adopted the behavior of 64-bit Visual C++ as the default, so to accommodate +this, the libjpeg-turbo SIMD function names are no longer prefixed with an +underscore when building with MinGW64. This means that, when building +libjpeg-turbo with older versions of MinGW64, you will now have to add +-fno-leading-underscore to the CFLAGS. + 1.1.0 ===== diff --git a/simd/jsimdext.inc b/simd/jsimdext.inc index 4ea3d17c..c4297f9c 100644 --- a/simd/jsimdext.inc +++ b/simd/jsimdext.inc @@ -48,9 +48,7 @@ ; %define SEG_TEXT .text align=16 public use64 class=CODE %define SEG_CONST .rdata align=16 public use64 class=CONST -%ifdef MSVC %define EXTN(name) name ; foo() -> foo -%endif %elifdef OBJ32 ; ----(nasm -fobj -DOBJ32 ...)---------- ; * Borland C++ (Win32)