File revert-818133cd23b493da472daff2cda9a8e97d0c9637.patch of Package osmocom-bb

diff --git a/src/target/firmware/Makefile.inc b/src/target/firmware/Makefile.inc
index 86e8f3ce..2be240d2 100644
--- a/src/target/firmware/Makefile.inc
+++ b/src/target/firmware/Makefile.inc
@@ -4,7 +4,7 @@
 CROSS_COMPILE?=arm-none-eabi-
 
 CC=gcc
-LD=gcc
+LD=ld
 AR=ar
 SIZE=size
 OBJCOPY=objcopy
@@ -22,7 +22,7 @@ CFLAGS += -g$(DEBUGF)
 #ASFLAGS=--g$(DEBUGF) $(INCLUDES) -D__ASSEMBLY__
 ASFLAGS=$(INCLUDES) -D__ASSEMBLY__
 
-LDFLAGS = -nostartfiles -nostdlib -nodefaultlibs -Wl,--gc-sections -Wl,--cref
+LDFLAGS = -nostartfiles -nostdlib -nodefaultlibs --gc-sections --cref
 
 #### QUIET OUTPUT ####
 
@@ -99,8 +99,8 @@ $(1)_$(2)_$(3)_OBJS+=board/$(2)/$(1).$(3).manifest.o
 # define compilation rule, also generates map file
 board/$(2)/$(1).$(3).elf board/$(2)/$(1).$(3).map: $$($(1)_$(2)_$(3)_OBJS) $$($(1)_$(2)_$(3)_LIBS) $$(ENV_$(3)_LDS)
 	$$(Q_LD)$(CROSS_COMPILE)$(LD) $(LDFLAGS) -T $$(ENV_$(3)_LDS) -Bstatic \
-		-Wl,-Map board/$(2)/$(1).$(3).map -o board/$(2)/$(1).$(3).elf \
-		-Wl,--start-group $$($(1)_$(2)_$(3)_OBJS) $$($(1)_$(2)_$(3)_LIBS) -Wl,--end-group
+		-Map board/$(2)/$(1).$(3).map -o board/$(2)/$(1).$(3).elf \
+		--start-group $$($(1)_$(2)_$(3)_OBJS) $$($(1)_$(2)_$(3)_LIBS) --end-group
 
 # define size rule
 board/$(2)/$(1).$(3).size: board/$(2)/$(1).$(3).elf
openSUSE Build Service is sponsored by