summaryrefslogtreecommitdiff
path: root/src/compiler.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-01-28 09:56:08 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-01-28 09:56:08 -0500
commitfc6aaab8d0f8a9d7328f18a633ab93afd7e9e5f0 (patch)
treee8d85a2bec92a14f719babb7d0400856a596eb89 /src/compiler.sml
parent703661dcfcf96e23acedf7c2a6d36cda3fb68bc6 (diff)
First attempt to switch to Automake, to get shared libraries built in OSX
Diffstat (limited to 'src/compiler.sml')
-rw-r--r--src/compiler.sml5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler.sml b/src/compiler.sml
index 5fba9ae0..11192dfa 100644
--- a/src/compiler.sml
+++ b/src/compiler.sml
@@ -1,4 +1,4 @@
-(* Copyright (c) 2008-2009, Adam Chlipala
+(* Copyright (c) 2008-2010, Adam Chlipala
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -1040,8 +1040,7 @@ fun compileC {cname, oname, ename, libs, profile, debug, link = link'} =
val proto = Settings.currentProtocol ()
val lib = if Settings.getStaticLinking () then
- clibFile "request.o" ^ " " ^ clibFile "queue.o" ^ " " ^ clibFile "urweb.o"
- ^ " " ^ clibFile "memmem.o" ^ " " ^ clibFile "mhash.o" ^ " " ^ #linkStatic proto
+ #linkStatic proto ^ " " ^ Config.lib ^ "/../liburweb.a"
else
"-L" ^ Config.lib ^ "/.. -lurweb " ^ #linkDynamic proto