build: Remove unused files

We do not use slim symbols, and all the symbols are hidden by default;
this means we don't need to test those things any more.
This commit is contained in:
Emmanuele Bassi 2023-08-16 16:30:31 +01:00
parent ba4d5fbd5d
commit 31fc7233a4
4 changed files with 0 additions and 98 deletions

View file

@ -1,3 +0,0 @@
#include "cairoint.h"
CAIRO_HAS_HIDDEN_SYMBOLS

View file

@ -1,30 +0,0 @@
#!/bin/sh
LC_ALL=C
export LC_ALL
if which readelf 2>/dev/null >/dev/null; then
:
else
echo "'readelf' not found; skipping test"
exit 0
fi
test -z "$srcdir" && srcdir=.
test -z "$MAKE" && MAKE=make
stat=0
if [ "x$CAIRO_HAS_HIDDEN_SYMBOLS" = x ]; then
$MAKE check-has-hidden-symbols.i > /dev/null || exit 1
if tail -1 check-has-hidden-symbols.i | grep CAIRO_HAS_HIDDEN_SYMBOLS >/dev/null; then
echo "Compiler doesn't support symbol visibility; skipping test"
exit 0
fi
fi
for so in .libs/lib*.so "$@"; do
echo Checking "$so" for local PLT entries
readelf -W -r "$so" | grep 'JU\?MP_SLO' | grep 'cairo' >&2 && stat=1
done
exit $stat

View file

@ -1,27 +0,0 @@
#!/bin/sh
LC_ALL=C
export LC_ALL
if [ $# -lt 3 ];
then
echo "Generate cairo def file"
echo "Usage: $0 <def-filename> <cairo-features-file> <cairo-headers>..."
exit 1
fi
def_file="$1"
cairo_features_h="$2"
shift 2
#echo Generating $def_file
(echo EXPORTS; \
(cat $* || echo 'cairo_ERROR ()' ) | \
egrep -v '^# *include' | \
( cat "$cairo_features_h" - | egrep -v '^#pragma' | cpp -D__cplusplus - || echo 'cairo_ERROR ()' ) | \
egrep '^cairo_.* \(' | \
sed -e 's/[ ].*//' | \
sort; \
) > "$def_file"
grep -q -v cairo_ERROR "$def_file" || (rm "$def_file"; false)

View file

@ -1,38 +0,0 @@
#!/bin/sh
LC_ALL=C
export LC_ALL
if [ $# -lt 2 ];
then
echo "Check that cairo library has same exported symbols as cairo.def"
echo "Usage: $0 <def-filename> <cairo-library>"
exit 1
fi
def="$1"
so="$2"
if which nm 2>/dev/null >/dev/null; then
:
else
echo "'nm' not found; skipping test"
exit 0
fi
stat=0
if [ "`uname -s`" = "Linux" ]; then
get_cairo_syms='( objdump -t "$so" | grep "^[^ ]* [^l.*]*[.]"; objdump -t "$so" | grep "[.]hidden.*\\<cairo"; ) | sed "s/.* //"'
else
get_cairo_syms='nm "$so" | grep " [BCDGINRSTVW] " | cut -d" " -f3'
fi
echo Checking that $so has the same symbol list as $def
{
echo EXPORTS
eval $get_cairo_syms | c++filt --no-params | grep -v '^_cairo_test_\|^_fini\|^_init\|^_save[fg]pr\|^_rest[fg]pr\|^_Z\|^__gnu\|^_bss_end\|^__bss\|^_edata\|^_end\|^__end\|^_fbss\|^_fdata\|^_ftext' | sort -u
} | diff "$def" - >&2 || stat=1
exit $stat