From 7650a3c71cb7f0f9dfc9ad2a0e5ea06aaed7c551 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Wed, 24 Jun 2020 20:53:39 +0800 Subject: [PATCH] make/import: override the ld group if undeclared Change-Id: I8f2fde21dcaac7c9a88915d585fda0ab30ce1d56 Signed-off-by: chao.an --- import/Make.defs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/import/Make.defs b/import/Make.defs index 41833fa3a..5c2c132ad 100644 --- a/import/Make.defs +++ b/import/Make.defs @@ -60,6 +60,14 @@ CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS) CXXFLAGS = $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS) +ifeq ($(LDSTARTGROUP),) +LDSTARTGROUP = --start-group +endif + +ifeq ($(LDENDGROUP),) +LDENDGROUP = --end-group +endif + # ELF module definitions CELFFLAGS = $(CFLAGS)