summaryrefslogtreecommitdiff
path: root/gdk/abicheck.sh
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-06-07 06:16:21 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-06-07 06:16:21 -0400
commit7644ac519a2b3335ea65a5afc6259d13db12c07d (patch)
treeb76cd5c4be98e98f5d530a989e3aa7b6928fd6b9 /gdk/abicheck.sh
parentda8643e4571a72eb092c837b94ab0b66b4e3d057 (diff)
downloadgtk+-7644ac519a2b3335ea65a5afc6259d13db12c07d.tar.gz
Fix up abi checking
The abicheck script was hardcoding assumptions about XI2 being used, making it fail on e.g. RHEL5.
Diffstat (limited to 'gdk/abicheck.sh')
-rwxr-xr-xgdk/abicheck.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/abicheck.sh b/gdk/abicheck.sh
index bd35405b96..422cee9a24 100755
--- a/gdk/abicheck.sh
+++ b/gdk/abicheck.sh
@@ -1,5 +1,5 @@
#! /bin/sh
-cpp -DINCLUDE_VARIABLES -P -DALL_FILES -DGDK_ENABLE_BROKEN -DGDK_WINDOWING_X11 ${srcdir:-.}/gdk.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' | sort | uniq > expected-abi
+cpp -DINCLUDE_VARIABLES -P -DALL_FILES -DGDK_ENABLE_BROKEN -include ${srcdir:-.}/../config.h -include ${srcdir:-.}/gdkconfig.h ${srcdir:-.}/gdk.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' | sort | uniq > expected-abi
nm -D -g --defined-only .libs/libgdk-x11-3.0.so | cut -d ' ' -f 3 | egrep -v '^(__bss_start|_edata|_end)' | sort > actual-abi
diff -u expected-abi actual-abi && rm -f expected-abi actual-abi