[riot-notifications] [RIOT-OS/RIOT] pkg/oonf_api: Use MRI script to combine archives. (#12155)

Juan I Carrano notifications at github.com
Mon Sep 9 17:44:35 CEST 2019


jcarrano commented on this pull request.



>  .PHONY: all
 
 all:
 	"$(MAKE)" -C $(PKG_BUILDDIR)
-	"$(MAKE)" $(BINDIR)/$(MODULE).a
+	"$(MAKE)" $(COMBINED_ARCHIVE)
+
+PARTIAL_ARCHIVES = $(wildcard $(BINDIR)/oonf_*.a)
+
+$(COMBINED_ARCHIVE): $(BINDIR)/$(MODULE).mri $(PARTIAL_ARCHIVES)
+	ar -M < $<
+
+define ADDLIB_TEMPLATE
+addlib $1

Essentially, this is the same as `ADDLIB_TEMPLATE = addlib $1 \n`, if such a thing (`\n`) were allowed in make, which it isn't.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12155#discussion_r322316198
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190909/dd656b21/attachment.htm>


More information about the notifications mailing list