Permalink
Browse files

Use the sections options for smaller binaries

  • Loading branch information...
1 parent 2625fe2 commit 1902794aa23fc4ee2070bc8a3ac08c6feef42b94 @clbr committed Mar 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile
View
@@ -5,8 +5,8 @@ LIBS = -lxmlrpc_client -lfcgi
FILES = $(wildcard *.c)
OBJS = $(FILES:.c=.o)
-CFLAGS += -Wall -Wextra
-LDFLAGS += -Wl,-O1
+CFLAGS += -Wall -Wextra -ffunction-sections -fdata-sections
+LDFLAGS += -Wl,-O1 -Wl,-gc-sections
NAME = a2web.cgi

0 comments on commit 1902794

Please sign in to comment.