changeset 287:3ed7a7c7b060

Ask GCC to strip executables
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Sep 2008 10:52:51 -0400
parents ffe5b01908ae
children 4260ad920c36
files src/compiler.sml
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/compiler.sml	Sun Sep 07 10:48:51 2008 -0400
+++ b/src/compiler.sml	Sun Sep 07 10:52:51 2008 -0400
@@ -467,8 +467,8 @@
 
 fun compileC {cname, oname, ename} =
     let
-        val compile = "gcc -O3 -I include -c " ^ cname ^ " -o " ^ oname
-        val link = "gcc -O3 -pthread -lpq clib/urweb.o " ^ oname ^ " clib/driver.o -o " ^ ename
+        val compile = "gcc -s -O3 -I include -c " ^ cname ^ " -o " ^ oname
+        val link = "gcc -s -O3 -pthread -lpq clib/urweb.o " ^ oname ^ " clib/driver.o -o " ^ ename
     in
         if not (OS.Process.isSuccess (OS.Process.system compile)) then
             print "C compilation failed\n"