oops, fix setting linker flags for haskell executables
authorkoda
Mon, 24 Jun 2013 09:31:14 +0200
changeset 9253 90ea56f4f2f5
parent 9251 6c238c897213
child 9255 fd16cfa267aa
oops, fix setting linker flags for haskell executables
cmake_modules/utils.cmake
--- a/cmake_modules/utils.cmake	Sun Jun 23 22:31:12 2013 -0400
+++ b/cmake_modules/utils.cmake	Mon Jun 24 09:31:14 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}")