From caf4866385c67ac32b65daf48c8a8f7e2c859046 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Thu, 5 Jan 2012 19:23:34 -0500 Subject: Change linking argument order, based on reported problems in Ubuntu 11.10 --- src/compiler.sml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler.sml b/src/compiler.sml index 2a890f32..57c3e1ff 100644 --- a/src/compiler.sml +++ b/src/compiler.sml @@ -1354,7 +1354,7 @@ fun compileC {cname, oname, ename, libs, profile, debug, link = link'} = val lib = if Settings.getStaticLinking () then #linkStatic proto ^ " " ^ Config.lib ^ "/../liburweb.a" else - "-L" ^ Config.lib ^ "/.. -lurweb " ^ #linkDynamic proto + "-L" ^ Config.lib ^ "/.. " ^ #linkDynamic proto ^ " -lurweb" val opt = if debug then "" @@ -1366,8 +1366,8 @@ fun compileC {cname, oname, ename, libs, profile, debug, link = link'} = ^ " " ^ #compile proto ^ " -c " ^ escapeFilename cname ^ " -o " ^ escapeFilename oname - val link = Config.ccompiler ^ " -Werror" ^ opt ^ " -lm " ^ Config.ccArgs ^ " " ^ Config.pthreadCflags ^ " " ^ Config.pthreadLibs - ^ " " ^ lib ^ " " ^ Config.openssl ^ " " ^ escapeFilename oname ^ " -o " ^ escapeFilename ename ^ " " ^ libs + val link = Config.ccompiler ^ " -Werror" ^ opt ^ " " ^ Config.ccArgs ^ " " ^ Config.pthreadCflags ^ " " ^ Config.pthreadLibs + ^ " " ^ lib ^ " " ^ escapeFilename oname ^ " " ^ libs ^ " -lm " ^ Config.openssl ^ " -o " ^ escapeFilename ename val (compile, link) = if profile then -- cgit v1.2.3