Skip to content

Commit

Permalink
tmp test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbonfield committed Jul 4, 2024
1 parent 3763fc7 commit b5f0997
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,8 @@ test-shlib-exports: header-exports.txt shlib-exports-$(SHLIB_FLAVOUR).txt
@echo "Checking shared library exports"
@if test ! -s header-exports.txt ; then echo "Error: header-exports.txt empty" ; false ; fi
@if test ! -s shlib-exports-$(SHLIB_FLAVOUR).txt ; then echo "Error: shlib-exports-$(SHLIB_FLAVOUR).txt empty" ; false ; fi
echo === header-exports; cat header-exports.txt
echo === shlib-exports; cat shlib-exports-$(SHLIB_FLAVOUR).txt
@! comm -23 header-exports.txt shlib-exports-$(SHLIB_FLAVOUR).txt | grep . || \
( echo "Error: Found unexported symbols (listed above)" ; false )

Expand All @@ -837,6 +839,7 @@ shlib-exports-dylib.txt: libhts.dylib
nm -Ug libhts.dylib | awk '$$2 == "T" { sub("^_", "", $$3); print $$3 }' | sort -u -o $@

shlib-exports-dll.txt: hts.dll.a
nm -g hts.dll.a
nm -g hts.dll.a | awk '$$2 == "T" { print $$3 }' | sort -u -o $@

$(srcprefix)htslib.map: libhts.so
Expand Down

0 comments on commit b5f0997

Please sign in to comment.