From e2f0ae381639b6fb921b45aa00939a8e2d20a80b Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Thu, 28 Apr 2022 12:19:58 +0300 Subject: [PATCH] import/Make.defs: Fix C++ library linkage with CONFIG_BUILD_KERNEL Encapsulate link libraries with start/end group --- Application.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application.mk b/Application.mk index 51ce6eff2..57b7eedc4 100644 --- a/Application.mk +++ b/Application.mk @@ -132,7 +132,7 @@ endef define ELFLD @echo "LD: $2" - $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) $(ARCHCRT0OBJ) $1 $(LDLIBS) -o $2 + $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) $(ARCHCRT0OBJ) $1 $(LDSTARTGROUP) $(LDLIBS) $(LDENDGROUP) -o $2 endef $(RAOBJS): %.s$(SUFFIX)$(OBJEXT): %.s