From: Jann Horn Date: Mon, 12 Nov 2012 18:23:29 +0000 (+0100) Subject: activate more optimizations X-Git-Url: http://git.thejh.net/?a=commitdiff_plain;h=a063996cdd48b5394ddbadf5b40fbc8a997e2d38;p=cwebfiles.git activate more optimizations --- diff --git a/compile b/compile index 0ca9574..1137363 100755 --- a/compile +++ b/compile @@ -1,13 +1,13 @@ #!/bin/bash for cgi in checkstatus listdir; do echo -e "\ncompiling $cgi.c..." - diet gcc -O3 -std=gnu99 -Wall -Werror -g -o $cgi $cgi.c cgistuff.c hex.c -lcrypt -lowfat + diet gcc -O3 -fwhole-program -flto -std=gnu99 -Wall -Werror -g -o $cgi $cgi.c cgistuff.c hex.c -lcrypt -lowfat sudo chown root:root $cgi sudo chmod u+s $cgi done # diet doesn't work here because crypt() doesn't support modern hashes echo -e "\ncompiling login.c..." -gcc -O3 -std=gnu99 -Wall -Werror -g -o login login.c cgistuff.c hex.c -lcrypt -lowfat +gcc -O3 -fwhole-program -flto -std=gnu99 -Wall -Werror -g -o login login.c cgistuff.c hex.c -lcrypt -lowfat sudo chown root:root login sudo chmod u+s login