diff options
author | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-16 18:58:48 +0000 |
---|---|---|
committer | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-16 18:58:48 +0000 |
commit | 7433ab8f20c762d62fb505cb2316dbb60047fa66 (patch) | |
tree | ab40768ae74414e153548bd1f80a6b60136d70fb /libstdc++-v3/Makefile.am | |
parent | 26906dc1f00868babc8e3f7e89e2b113f0ab740e (diff) | |
download | gcc-7433ab8f20c762d62fb505cb2316dbb60047fa66.tar.gz |
2002-09-16 Phil Edwards <pme@gcc.gnu.org>
* testsuite/abi_check.cc: Pull shell fragments out into...
* config/abi/extract_symvers: ...here. New file.
* Makefile.am (check_abi): Change to match.
(new-abi-baseline): New target.
* Makefile.in: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57208 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/Makefile.am')
-rw-r--r-- | libstdc++-v3/Makefile.am | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/libstdc++-v3/Makefile.am b/libstdc++-v3/Makefile.am index e3822dcc901..410aa5549a7 100644 --- a/libstdc++-v3/Makefile.am +++ b/libstdc++-v3/Makefile.am @@ -46,10 +46,25 @@ check-script-install: $(top_builddir)/mkcheck cd testsuite; \ @glibcpp_builddir@/mkcheck 1) +# Use 'new-abi-baseline' to create an initial symbol file. Then run +# 'check-abi' to test for changes against that file. baseline_file = @baseline_file@ check-abi: $(top_builddir)/testsuite/abi_check -(cd testsuite; \ - ./abi_check ${baseline_file}) + ${top_srcdir}/config/abi/extract_symvers \ + ../src/.libs/libstdc++.so \ + ./current_symbols.txt && \ + ./abi_check --check ./current_symbols.txt ${baseline_file}) + +new-abi-baseline: + -@(output=${baseline_file}; \ + if test -f $${output}; then \ + output=$${output}.new; \ + t=`echo $${output} | sed 's=.*config/abi/=='`; \ + echo "Baseline file already exists, writing to $${t} instead."; \ + fi; \ + ${top_srcdir}/config/abi/extract_symvers \ + src/.libs/libstdc++.so $${output}) # These rules are messy, but are hella worth it. doxygen: |