Add check for not linking to libstdc++
This commit is contained in:
parent
ca95ce460a
commit
21d0fce3d5
3
TODO
3
TODO
|
@ -1,6 +1,5 @@
|
||||||
- cmap14 support in get_glyph callback
|
- cmap14 support in get_glyph callback
|
||||||
- size_t?
|
- Use size_t in sanitize?
|
||||||
- Add test for linking to libstdc++
|
|
||||||
- Move unicode_funcs to buffer
|
- Move unicode_funcs to buffer
|
||||||
|
|
||||||
hb-ot:
|
hb-ot:
|
||||||
|
|
|
@ -62,4 +62,8 @@ main_SOURCES = main.cc
|
||||||
main_CPPFLAGS = $(GLIB_CFLAGS)
|
main_CPPFLAGS = $(GLIB_CFLAGS)
|
||||||
main_LDADD = libharfbuzz.la $(GLIB_LIBS)
|
main_LDADD = libharfbuzz.la $(GLIB_LIBS)
|
||||||
|
|
||||||
|
TESTS = \
|
||||||
|
check-libstdc++.sh \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
-include $(top_srcdir)/git.mk
|
-include $(top_srcdir)/git.mk
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
LC_ALL=C
|
||||||
|
export LC_ALL
|
||||||
|
|
||||||
|
if which ldd 2>/dev/null >/dev/null; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
echo "check-libstdc++.sh: 'ldd' not found; skipping test"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
test -z "$srcdir" && srcdir=.
|
||||||
|
test -z "$MAKE" && MAKE=make
|
||||||
|
stat=0
|
||||||
|
|
||||||
|
so=.libs/libharfbuzz.so
|
||||||
|
if test -f "$so"; then
|
||||||
|
echo "Checking that we are not linking to libstdc++"
|
||||||
|
if ldd $so | grep 'libstdc[+][+]'; then
|
||||||
|
echo "Ouch, linked to libstdc++"
|
||||||
|
stat=1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "check-libstdc++.sh: libharfbuzz.so not found; skipping test"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit $stat
|
Loading…
Reference in New Issue