mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 07:36:17 +01:00
936ff022f2
They are added by the binutils gold linker.
14 lines
543 B
Bash
Executable File
14 lines
543 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 -DINCLUDE_VARIABLES -P $INCLUDES -DALL_FILES ${srcdir:-.}/gio.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
|
|
rm glibconfig.cpp
|
|
|
|
nm -D -g --defined-only .libs/libgio-2.0.so | cut -d ' ' -f 3 | egrep -v '^(__bss_start|_edata|_end)' | sort > actual-abi
|
|
|
|
diff -u expected-abi actual-abi && rm expected-abi actual-abi
|