2004-09-16 08:05:53 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
2010-07-12 03:08:42 +02:00
|
|
|
egrep '^#([^i]|if).*[^\]$' "${builddir:-.}/glibconfig.h" > glibconfig.cpp
|
2005-02-07 07:00:32 +01:00
|
|
|
|
|
|
|
INCLUDES="-include ${top_builddir:-..}/config.h"
|
2007-08-09 00:06:47 +02:00
|
|
|
INCLUDES="$INCLUDES -include glibconfig.cpp $GLIB_DEBUG_FLAGS"
|
2005-02-07 07:00:32 +01:00
|
|
|
|
2011-05-23 06:21:06 +02:00
|
|
|
cpp -P -DG_STDIO_NO_WRAP_ON_UNIX $INCLUDES "${srcdir:-.}/glib.symbols" | sed -e '/^$/d' -e 's/ PRIVATE$//' | sort > expected-abi
|
2006-09-30 16:06:45 +02:00
|
|
|
rm -f glibconfig.cpp
|
2005-02-07 07:00:32 +01:00
|
|
|
|
2010-05-10 09:51:49 +02:00
|
|
|
nm -D -g --defined-only .libs/libglib-2.0.so | cut -d ' ' -f 3 | egrep -v '^(__bss_start|_edata|_end)' | sort > actual-abi
|
2005-02-07 07:00:32 +01:00
|
|
|
|
2006-09-30 16:06:45 +02:00
|
|
|
diff -u expected-abi actual-abi && rm -f expected-abi actual-abi
|