diff --git a/patches/toolchain-linux-mingw.oglft.cmake b/patches/toolchain-linux-mingw.oglft.cmake
index 7be34af99799f58a53530be94f60204e2744c709..e36e184b1dfad0f1c90d19b8d527f61ead92a552 100644
--- a/patches/toolchain-linux-mingw.oglft.cmake
+++ b/patches/toolchain-linux-mingw.oglft.cmake
@@ -2,8 +2,8 @@
 SET(CMAKE_SYSTEM_NAME Windows)
 
 # which compilers to use for C and C++
-SET(CMAKE_C_COMPILER   i586-pc-mingw32-gcc)
-SET(CMAKE_CXX_COMPILER i586-pc-mingw32-g++)
+SET(CMAKE_C_COMPILER ${CC})
+SET(CMAKE_CXX_COMPILER ${CXX})
 
 # here is the target environment located
 SET(CMAKE_FIND_ROOT_PATH  ${OGLFT_INSTALL})