Minor build tweaks that save 1100 bytes building busybox on Ubuntu 6.06.
authorRob Landley <rob@landley.net>
Thu, 6 Jul 2006 17:22:54 +0000 (17:22 -0000)
committerRob Landley <rob@landley.net>
Thu, 6 Jul 2006 17:22:54 +0000 (17:22 -0000)
Rules.mak
include/libbb.h

index 58a4c3e70f294359b6dc4eb021a9ef3da8202d15..6df828c7c658a03fb75114b2a2eab871ee62081f 100644 (file)
--- 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:=
index db43984b89a55107bd7cfec76c678b74b6d0b930..6d6213901c880c8c904d650b8ae63d2879e411f4 100644 (file)
@@ -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__ */