diff --git a/make/helpers.mk b/make/helpers.mk index 399f39f0..6e1b4094 100644 --- a/make/helpers.mk +++ b/make/helpers.mk @@ -53,7 +53,8 @@ REWRITE_TAG = rewritten=1 define rewrite_libtool cd $(TARGET_LIB_DIR); \ - for la in *.la; do \ + LA=$$(find . -name "*.la" -type f); \ + for la in $${LA}; do \ if ! grep -q "$(REWRITE_TAG)" $${la}; then \ echo -e "$(TERM_YELLOW)Rewriting $${la}$(TERM_NORMAL)"; \ $(REWRITE_LIBTOOL)/$${la}; \