cmake_modules/utils.cmake
branchwebgl
changeset 9244 bb95e351270c
parent 9227 c02e081ba481
child 9274 9749524d1767
--- a/cmake_modules/utils.cmake	Mon Jun 17 23:24:18 2013 +0200
+++ b/cmake_modules/utils.cmake	Tue Jun 18 09:48:10 2013 +0200
@@ -36,7 +36,7 @@
 endmacro(add_flag_prepend _VAR_NAME _FLAG)
 
 macro(add_linker_flag _FLAG)
-    list(APPEND haskell_flags "-optl" "${_FLAG}")
+    list(APPEND haskell_flags "-optl" "-Wl,${_FLAG}")
     add_flag_append(CMAKE_Pascal_FLAGS "-k${_FLAG}")
     add_flag_append(CMAKE_EXE_LINKER_FLAGS "-Wl,${_FLAG}")
     add_flag_append(CMAKE_SHARED_LIBRARY_C_FLAGS "-Wl,${_FLAG}")