From 389c47248b71c14722f8888cfd995667b8764f35 Mon Sep 17 00:00:00 2001 From: DRC Date: Sun, 6 Feb 2011 18:48:13 +0000 Subject: [PATCH] JNI expects symbols to either have both an underscore and an @ suffix or to have neither, so since MinGW doesn't add an underscore, we need to disable the suffix as well git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@352 632fc199-4ca6-4c93-a231-07263d6284db --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a91fca8..2b690e92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -182,6 +182,9 @@ endif() add_library(turbojpeg SHARED ${TURBOJPEG_SOURCES}) set_target_properties(turbojpeg PROPERTIES DEFINE_SYMBOL DLLDEFINE) +if(MINGW) + set_target_properties(turbojpeg PROPERTIES LINK_FLAGS -Wl,--kill-at) +endif() target_link_libraries(turbojpeg jpeg-static) set_target_properties(turbojpeg PROPERTIES LINK_INTERFACE_LIBRARIES "")