diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-18 12:05:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-06-18 12:05:34 +0100 |
| commit | e1bdae15781d64ee42205903c12ea65ab750290b (patch) | |
| tree | cb2ea6eed1c132dc515ce7c0c78cbe1853086cfb /toolchain | |
| parent | 4eee448d748594c711b80d46877e4fb413246eeb (diff) | |
Fix #includes and build a shared library.
Diffstat (limited to 'toolchain')
| -rw-r--r-- | toolchain/generic.cmake | 2 | ||||
| -rw-r--r-- | toolchain/mingw.cmake | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/toolchain/generic.cmake b/toolchain/generic.cmake index 4b5e329..838a8be 100644 --- a/toolchain/generic.cmake +++ b/toolchain/generic.cmake @@ -8,7 +8,7 @@ set(AS as) set(AR ar) set(OBJCOPY objcopy) set(OBJDUMP objdump) -set(SIZE size) +# set(SIZE size) 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") 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") |
