# HG changeset patch # User Anders Kaseorg # Date 1385062331 18000 # Node ID 9a1097954188701b9a1ed25751c43af497e724cb # Parent 907a82a44f018d5a35d80d679ec677f3806d7c62 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 --- src/compiler.sml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -r 907a82a44f01 -r 9a1097954188 src/compiler.sml --- a/src/compiler.sml Thu Nov 21 14:32:11 2013 -0500 +++ b/src/compiler.sml Thu Nov 21 14:32:11 2013 -0500 @@ -1492,7 +1492,7 @@ 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