aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-07-06 17:22:54 +0000
committerRob Landley <rob@landley.net>2006-07-06 17:22:54 +0000
commit4ae905a31cc57ea4a835ed0cc4489e81ab9a7524 (patch)
treefc68309e2101510bc67a24ebfa8ad95dae2c9bb8
parentaa516a61b994526e1b09fbe863ea34e553e76017 (diff)
downloadbusybox-4ae905a31cc57ea4a835ed0cc4489e81ab9a7524.tar.gz
Minor build tweaks that save 1100 bytes building busybox on Ubuntu 6.06.
-rw-r--r--Rules.mak1
-rw-r--r--include/libbb.h15
2 files changed, 16 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index 58a4c3e70..6df828c7c 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -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),-mmax-stack-frame=256,)
CHECKED_CFLAGS+=$(call check_cc,$(CC),-fno-builtin-strlen)
+CHECKED_CFLAGS+=$(call check_cc,$(CC),-finline-limit=0)
# Preemptively pin this too.
PROG_CFLAGS:=
diff --git a/include/libbb.h b/include/libbb.h
index db43984b8..6d6213901 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -551,4 +551,19 @@ extern uint32_t *bb_crc32_filltable (int endian);
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__ */