From 1326e7d4508ada7f152896829e9f0407dbd390a0 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 12 Mar 2005 14:55:18 +0000 Subject: ld --sort-common, reduce bss section align overhead about 300~400 bytes git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2610 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mbbsd') diff --git a/mbbsd/Makefile b/mbbsd/Makefile index 1c4b6ee6..863a053d 100644 --- a/mbbsd/Makefile +++ b/mbbsd/Makefile @@ -20,6 +20,11 @@ OBJS+= random.o time.o DIETCC= diet -Os .endif +# reduce .bss align overhead +.if !defined(DEBUG) +LDFLAGS+=-Wl,--sort-common +.endif + .if defined(MERGEBBS) CFLAGS+= -DMERGEBBS OBJS+= merge.o -- cgit v1.2.3