Tighten up ABI checks a bit

This commit is contained in:
Matthias Clasen 2005-08-07 13:47:25 +00:00
parent d40699c1b5
commit f13dc6d43c
3 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2005-08-07 Matthias Clasen <mclasen@redhat.com>
* abicheck.sh: Also check exported variables.
2005-08-02 Matthias Clasen <mclasen@redhat.com> 2005-08-02 Matthias Clasen <mclasen@redhat.com>
* === Released 2.7.5 === * === Released 2.7.5 ===

View File

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
cpp -P -DALL_FILES ${srcdir:-.}/gdk-pixbuf.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi cpp -DINCLUDE_VARIABLES -P -DALL_FILES ${srcdir:-.}/gdk-pixbuf.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
nm -D .libs/libgdk_pixbuf-2.0.so | grep " T " | cut -d ' ' -f 3 | sort > actual-abi nm -D .libs/libgdk_pixbuf-2.0.so | grep " [BDTR] " | cut -d ' ' -f 3 | sort > actual-abi
diff -u expected-abi actual-abi && rm expected-abi actual-abi diff -u expected-abi actual-abi && rm expected-abi actual-abi

View File

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
cpp -P -DG_OS_UNIX -DGTK_WINDOWING_X11 -DALL_FILES ${srcdir:-.}/gtk.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' | sort > expected-abi cpp -DINCLUDE_VARIABLES -P -DG_OS_UNIX -DGTK_WINDOWING_X11 -DALL_FILES ${srcdir:-.}/gtk.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' | sort > expected-abi
nm -D .libs/libgtk-x11-2.0.so | grep " T " | cut -d ' ' -f 3 | sort > actual-abi nm -D .libs/libgtk-x11-2.0.so | grep " [BDTR] " | cut -d ' ' -f 3 | sort > actual-abi
diff -u expected-abi actual-abi && rm expected-abi actual-abi diff -u expected-abi actual-abi && rm expected-abi actual-abi