Skip to content
Snippets Groups Projects
Commit 1b0d9ef1 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

make: treat packages like modules when it comes to linking

parent fef429e1
No related branches found
No related tags found
No related merge requests found
......@@ -236,7 +236,6 @@ endif
# the binaries to link
BASELIBS += $(BINDIR)${APPLICATION}.a
BASELIBS += $(USEPKG:%=${BINDIR}%.a)
BASELIBS += $(APPDEPS)
.PHONY: all clean flash term doc debug debug-server reset objdump help info-modules
......
......@@ -3,7 +3,7 @@ USEMODULE := $(filter-out $(filter-out $(FEATURES_PROVIDED), $(FEATURES_OPTIONAL
ED = $(addprefix FEATURE_,$(sort $(filter $(FEATURES_PROVIDED), $(FEATURES_REQUIRED))))
ED += $(addprefix MODULE_,$(sort $(USEMODULE) $(USEPKG)))
EXTDEFINES = $(addprefix -D,$(shell echo '$(ED)' | tr 'a-z-' 'A-Z_'))
REALMODULES = $(filter-out $(PSEUDOMODULES), $(sort $(USEMODULE)))
REALMODULES = $(filter-out $(PSEUDOMODULES), $(sort $(USEMODULE) $(USEPKG)))
export BASELIBS += $(REALMODULES:%=$(BINDIR)%.a)
CFLAGS += $(EXTDEFINES)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment