Mercurial > urweb
comparison src/compiler.sml @ 1893:9a1097954188
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(-)
author | Anders Kaseorg <andersk@mit.edu> |
---|---|
date | Thu, 21 Nov 2013 14:32:11 -0500 |
parents | c3119c263bd3 |
children | 0992323fa264 |
comparison
equal
deleted
inserted
replaced
1892:907a82a44f01 | 1893:9a1097954188 |
---|---|
1490 Config.openssl ^ " -ldl -lz" | 1490 Config.openssl ^ " -ldl -lz" |
1491 else | 1491 else |
1492 Config.openssl | 1492 Config.openssl |
1493 | 1493 |
1494 val link = linker | 1494 val link = linker |
1495 ^ " " ^ lib ^ " " ^ escapeFilename oname ^ " -lm " ^ ssl ^ " " ^ libs ^ " -o " ^ escapeFilename ename | 1495 ^ " " ^ escapeFilename oname ^ " " ^ lib ^ " -lm " ^ ssl ^ " " ^ libs ^ " -o " ^ escapeFilename ename |
1496 | 1496 |
1497 val (compile, link) = | 1497 val (compile, link) = |
1498 if profile then | 1498 if profile then |
1499 (compile ^ " -pg", link ^ " -pg") | 1499 (compile ^ " -pg", link ^ " -pg") |
1500 else | 1500 else |