diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-27 10:19:37 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-27 10:19:37 +0000 |
commit | bc3118c71045c6dbb3f02bd736b45791e26c0d16 (patch) | |
tree | a6597e08d99fe8e326702bb175aea4547df88b58 /extra/scripts/install_headers.sh | |
parent | e249334ac4d22e45d39fe7e0e7aa03156ebb37b7 (diff) | |
download | uClibc-alpine-bc3118c71045c6dbb3f02bd736b45791e26c0d16.tar.bz2 uClibc-alpine-bc3118c71045c6dbb3f02bd736b45791e26c0d16.tar.xz |
ctype: remove some trivial macros from ctype.h;
remove __tolower and __toupper (they existed only in SOME configs!);
remove usages of _tolower (some of them clearly buggy) from uclibc code;
add a few more -U<define> options to unifdef pass over installed headers;
document it on docs/wchar_and_locale.txt
text data bss dec hex filename
- 514963 2727 15396 533086 8225e lib/libuClibc-0.9.30-svn.so
+ 514888 2727 15396 533011 82213 lib/libuClibc-0.9.30-svn.so
Diffstat (limited to 'extra/scripts/install_headers.sh')
-rwxr-xr-x | extra/scripts/install_headers.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/extra/scripts/install_headers.sh b/extra/scripts/install_headers.sh index e5314447f..f01d89445 100755 --- a/extra/scripts/install_headers.sh +++ b/extra/scripts/install_headers.sh @@ -51,7 +51,12 @@ while read -r filename; do # exactly the same as input. That's ok. # Do not abort the script if unifdef "fails"! # NB2: careful with sed command arguments, they contain tab character - "$top_builddir/extra/scripts/unifdef" -UUCLIBC_INTERNAL -U_LIBC "$1/$filename" \ + "$top_builddir/extra/scripts/unifdef" \ + -UUCLIBC_INTERNAL \ + -U_LIBC \ + -U__UCLIBC_GEN_LOCALE \ + -U__NO_CTYPE \ + "$1/$filename" \ | sed -e '/^rtld_hidden_proto[ ]*([a-zA-Z0-9_]*)$/d' \ | sed -e '/^lib\(c\|m\|resolv\|dl\|intl\|rt\|nsl\|util\|crypt\|pthread\)_hidden_proto[ ]*([a-zA-Z0-9_]*)$/d' \ >"$2/$filename" |