mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
defs.mk: Fix LIBFLAGS for some projects without lib
LIBFLAGS was broken for projects with USE_PROJECT_LIB = false and PREREQ_BUILD non-empty Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
2c28a9ccfd
commit
0562bc310f
1 changed files with 6 additions and 3 deletions
|
|
@ -979,11 +979,14 @@ endif
|
|||
|
||||
INCLUDE += $(call proj_query, cflags $(PREREQ_BUILD) $(PROJECT))
|
||||
|
||||
LDFLAGS_QUERY_ARGS = $(addprefix --exclude ,$(LDFLAGS_EXCLUDE)) $(PREREQ_BUILD) $(PROJECT)
|
||||
LDFLAGS_QUERY_ARGS = $(addprefix --exclude ,$(LDFLAGS_EXCLUDE))
|
||||
LIBFLAGS += $(call proj_query, ldflags $(LDFLAGS_QUERY_ARGS) --add-self $(PREREQ_BUILD))
|
||||
|
||||
# the following is necessary, because not all projects have build.libname = none in project.conf
|
||||
ifeq ($(USE_PROJECT_LIB),true)
|
||||
LDFLAGS_QUERY_ARGS += --add-self
|
||||
LDFLAGS_QUERY_ARGS_SELF = --add-self
|
||||
endif
|
||||
LIBFLAGS += $(call proj_query, ldflags $(LDFLAGS_QUERY_ARGS))
|
||||
LIBFLAGS += $(call proj_query, ldflags $(LDFLAGS_QUERY_ARGS) $(LDFLAGS_QUERY_ARGS_SELF) $(PROJECT))
|
||||
|
||||
#include $(MODDIR)/make/lib-deps.mk
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue