[fossil-users] Build non-debug version

1 view
Skip to first unread message

Christopher Berardi

unread,
Mar 17, 2012, 7:02:10 PM3/17/12
to fossil...@lists.fossil-scm.org
Since I run 64-bit Linux, I have to build fossil myself from source.
That's not a problem in the least. However, I always have to manually
change the makefile to remove the '-g' flag that gets added to the
compiler command (I don't want a 4 megabyte debug binary). Is there a
simple configure switch that I've overlooked that will automatically
omit that flag for me?

--
Christopher Berardi
http://www.natoufa.com/

May grace and peace by yours in abundance.
_______________________________________________
fossil-users mailing list
fossil...@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Steve Bennett

unread,
Mar 17, 2012, 8:05:34 PM3/17/12
to Fossil SCM user's discussion
On 18/03/2012, at 9:02 AM, Christopher Berardi wrote:

> Since I run 64-bit Linux, I have to build fossil myself from source.
> That's not a problem in the least. However, I always have to manually
> change the makefile to remove the '-g' flag that gets added to the
> compiler command (I don't want a 4 megabyte debug binary). Is there a
> simple configure switch that I've overlooked that will automatically
> omit that flag for me?

./configure CFLAGS=-O2

Of course you can just strip the executable after building.

--
µWeb: Embedded Web Framework - http://uweb.workware.net.au/
WorkWare Systems Pty Ltd
W: www.workware.net.au P: +61 434 921 300
E: ste...@workware.net.au F: +61 7 3391 6002

Reply all
Reply to author
Forward
0 new messages