summaryrefslogtreecommitdiff
path: root/toolchain/mingw.cmake
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-06-18 12:05:34 +0100
committerCarl Hetherington <cth@carlh.net>2020-03-08 09:17:37 +0100
commit89c456b2333245b8dc4a80deb0f1aabf4f021184 (patch)
treef707cb684006f1cad0d1691afd88a8a00d386473 /toolchain/mingw.cmake
parent4eee448d748594c711b80d46877e4fb413246eeb (diff)
Fix #includes and build a shared library.
Diffstat (limited to 'toolchain/mingw.cmake')
-rw-r--r--toolchain/mingw.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolchain/mingw.cmake b/toolchain/mingw.cmake
index b251acb..9efd933 100644
--- a/toolchain/mingw.cmake
+++ b/toolchain/mingw.cmake
@@ -1,6 +1,6 @@
# Name of the target
set(CMAKE_SYSTEM_NAME Windows)
-set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
+set(TOOLCHAIN_PREFIX /opt/mxe/usr/bin/x86_64-w64-mingw32.shared)
set(CMAKE_SYSTEM_PROCESSOR mingw)
# Toolchain settings
@@ -12,7 +12,7 @@ set(OBJCOPY objcopy)
set(OBJDUMP objdump)
set(SIZE size)
-set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
+set(CMAKE_FIND_ROOT_PATH /opt/mxe/usr/${TOOLCHAIN_PREFIX})
set(CMAKE_C_FLAGS "-std=gnu99 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")
set(CMAKE_CXX_FLAGS "-fdata-sections -ffunction-sections" CACHE INTERNAL "cxx compiler flags")