Mercurial > urweb
diff src/compiler.sml @ 1528:7770ef82c463
Configure correct C compiler options for Pthreads
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 04 Aug 2011 17:06:50 -0400 |
parents | 52fbd8534ef3 |
children | 659a2f71f5e5 |
line wrap: on
line diff
--- a/src/compiler.sml Thu Aug 04 16:44:05 2011 -0400 +++ b/src/compiler.sml Thu Aug 04 17:06:50 2011 -0400 @@ -1320,12 +1320,12 @@ else "-L" ^ Config.lib ^ "/.. -lurweb " ^ #linkDynamic proto - val compile = Config.ccompiler ^ " " ^ Config.ccArgs ^ " -Wimplicit -Werror -Wno-unused-value -O3 -I " ^ Config.includ + val compile = Config.ccompiler ^ " " ^ Config.ccArgs ^ " " ^ Config.pthreadCflags ^ " -Wimplicit -Werror -Wno-unused-value -O3 -I " ^ Config.includ ^ " " ^ #compile proto ^ " -c " ^ escapeFilename cname ^ " -o " ^ escapeFilename oname - val link = Config.ccompiler ^ " -Werror -O3 -lm -pthread " ^ Config.ccArgs ^ " " ^ lib ^ " " ^ Config.openssl ^ " " ^ escapeFilename oname - ^ " -o " ^ escapeFilename ename ^ " " ^ libs + val link = Config.ccompiler ^ " -Werror -O3 -lm " ^ Config.ccArgs ^ " " ^ Config.pthreadCflags ^ " " ^ Config.pthreadLibs + ^ " " ^ lib ^ " " ^ Config.openssl ^ " " ^ escapeFilename oname ^ " -o " ^ escapeFilename ename ^ " " ^ libs val (compile, link) = if profile then