summaryrefslogtreecommitdiff
path: root/src/compiler.sml
diff options
context:
space:
mode:
authorGravatar Anders Kaseorg <andersk@mit.edu>2013-11-21 14:32:11 -0500
committerGravatar Anders Kaseorg <andersk@mit.edu>2013-11-21 14:32:11 -0500
commit7983b693b98ea6ed9a3fde26a4dfdbfe16cbad43 (patch)
treed18e3c4b93e5731759042d9abd60b675f632d40d /src/compiler.sml
parent08da4a03fdb83569cf8d671aae841d15bbc0bc1b (diff)
compileC: Link libraries in the right order
This is needed, at least on recent Ubuntu, to fix this linker error when compiling any Ur/Web application: ld: /tmp/webapp.o: undefined reference to symbol 'uw_write' Signed-off-by: Anders Kaseorg <andersk@mit.edu> --- src/compiler.sml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Diffstat (limited to 'src/compiler.sml')
-rw-r--r--src/compiler.sml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.sml b/src/compiler.sml
index 51f96eb8..b2635e5e 100644
--- a/src/compiler.sml
+++ b/src/compiler.sml
@@ -1492,7 +1492,7 @@ fun compileC {cname, oname, ename, libs, profile, debug, linker, link = link'} =
Config.openssl
val link = linker
- ^ " " ^ lib ^ " " ^ escapeFilename oname ^ " -lm " ^ ssl ^ " " ^ libs ^ " -o " ^ escapeFilename ename
+ ^ " " ^ escapeFilename oname ^ " " ^ lib ^ " -lm " ^ ssl ^ " " ^ libs ^ " -o " ^ escapeFilename ename
val (compile, link) =
if profile then