mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 03:32:12 +01:00
2006-09-30 Matthias Clasen <mclasen@redhat.com> * glib/pltcheck.sh: A script to check PLT entries. * glib/Makefile.am (TESTS): Run pltcheck.sh * glib/*: Fix includes to correct some issues with PLT entries. (#354522, Behdad Esfahbod)
14 lines
566 B
Bash
Executable File
14 lines
566 B
Bash
Executable File
#! /bin/sh
|
|
|
|
egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glibconfig.h" > glibconfig.cpp
|
|
|
|
INCLUDES="-include ${top_builddir:-..}/config.h"
|
|
INCLUDES="$INCLUDES -include glibconfig.cpp"
|
|
|
|
cpp -P -DINCLUDE_INTERNAL_SYMBOLS -DINCLUDE_VARIABLES -DG_STDIO_NO_WRAP_ON_UNIX -DALL_FILES $INCLUDES "${srcdir:-.}/glib.symbols" | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
|
|
rm -f glibconfig.cpp
|
|
|
|
nm -D -g --defined-only .libs/libglib-2.0.so | cut -d ' ' -f 3 | sort > actual-abi
|
|
|
|
diff -u expected-abi actual-abi && rm -f expected-abi actual-abi
|