Minor build tweaks that save 1100 bytes building busybox on Ubuntu 6.06.

This commit is contained in:
Rob Landley 2006-07-06 17:22:54 +00:00
parent aa516a61b9
commit 4ae905a31c
2 changed files with 16 additions and 0 deletions

View File

@ -174,6 +174,7 @@ CHECKED_CFLAGS+=$(call check_cc,$(CC),-Wshadow,)
CHECKED_CFLAGS+=$(call check_cc,$(CC),-funsigned-char,) CHECKED_CFLAGS+=$(call check_cc,$(CC),-funsigned-char,)
CHECKED_CFLAGS+=$(call check_cc,$(CC),-mmax-stack-frame=256,) CHECKED_CFLAGS+=$(call check_cc,$(CC),-mmax-stack-frame=256,)
CHECKED_CFLAGS+=$(call check_cc,$(CC),-fno-builtin-strlen) CHECKED_CFLAGS+=$(call check_cc,$(CC),-fno-builtin-strlen)
CHECKED_CFLAGS+=$(call check_cc,$(CC),-finline-limit=0)
# Preemptively pin this too. # Preemptively pin this too.
PROG_CFLAGS:= PROG_CFLAGS:=

View File

@ -551,4 +551,19 @@ extern uint32_t *bb_crc32_filltable (int endian);
extern const char BB_BANNER[]; extern const char BB_BANNER[];
// Make sure we call functions instead of macros.
#undef isalnum
#undef isalpha
#undef isascii
#undef isblank
#undef iscntrl
#undef isdigit
#undef isgraph
#undef islower
#undef isprint
#undef ispunct
#undef isspace
#undef isupper
#undef isxdigit
#endif /* __LIBBUSYBOX_H__ */ #endif /* __LIBBUSYBOX_H__ */