# HG changeset patch
# User koda
# Date 1372059074 -7200
# Node ID 90ea56f4f2f5b0a79e2bfd249476bb933d3f62b7
# Parent  6c238c897213af41727b59735e8b27489b00828b
oops, fix setting linker flags for haskell executables

diff -r 6c238c897213 -r 90ea56f4f2f5 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}")