diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-13 12:43:23 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-10-12 19:24:29 +0200 |
commit | a307183723bdafba8e3aad25fc0c215c5c3bf05b (patch) | |
tree | 20fa3d392790ffc1440b2da254aebde7caf2c5db /extra | |
parent | 2793883eba9338b7270e3d3dd7a1f4ba6430c909 (diff) | |
download | uClibc-alpine-a307183723bdafba8e3aad25fc0c215c5c3bf05b.tar.bz2 uClibc-alpine-a307183723bdafba8e3aad25fc0c215c5c3bf05b.tar.xz |
Do not install libc-XXXX.h files in "make install". glibc does not have them, so should be safe.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'extra')
-rwxr-xr-x | extra/scripts/install_headers.sh | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/extra/scripts/install_headers.sh b/extra/scripts/install_headers.sh index 4e40b5be2..748f13e88 100755 --- a/extra/scripts/install_headers.sh +++ b/extra/scripts/install_headers.sh @@ -41,13 +41,20 @@ IFS='' while read -r filename; do if test -d "$1/$filename"; then mkdir -p "$2/$filename" 2>/dev/null - else - # NB: unifdef exits with 1 if output is not - # exactly the same as input. That's ok. - # Do not abort the script if unifdef "fails"! - "$top_builddir/extra/scripts/unifdef" -UUCLIBC_INTERNAL "$1/$filename" \ - | sed -e '/^\(rtld\|lib\(c\|m\|resolv\|dl\|intl\|rt\|nsl\|util\|crypt\|pthread\)\)_hidden_proto[ ]*([a-zA-Z0-9_]*)$/d' >"$2/$filename" + continue fi + if test x"${filename##libc-*.h}" = x""; then + # Do not install libc-XXXX.h files + continue + fi + # NB: unifdef exits with 1 if output is not + # 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" \ + | 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" done ) |