kopia lustrzana https://gitlab.com/sane-project/backends
New target 'libcheck' making sure libraries export only sane_* and sanei_* symbols.
rodzic
cf0f7a6ce4
commit
6f038c7c40
12
Makefile.in
12
Makefile.in
|
@ -66,6 +66,18 @@ sort-cvsignore:
|
|||
$(PERL) -e 'print sort <>;' < $$f > $$f.tmptmp; \
|
||||
mv $$f.tmptmp $$f; \
|
||||
done
|
||||
#
|
||||
# Check to make sure only sane_ and sanei_ symbols are exported from
|
||||
# the libraries
|
||||
#
|
||||
libcheck:
|
||||
echo "Libraries exporting 'illegal' symbols:"
|
||||
@for lib in backend/.libs/*.a; do \
|
||||
if nm -g $$lib|grep ' T '|egrep -v ' sane_| sanei_' > /dev/null; \
|
||||
then \
|
||||
echo " $$lib"; \
|
||||
fi \
|
||||
done
|
||||
|
||||
clean: clean-recursive
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue