make/import: override the ld group if undeclared
@@ -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)
