]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - Makefile
* Patch by Daniel Engström, 18 Nov 2002:
[karo-tx-uboot.git] / Makefile
index ec2140034c6c5611dfff6592901f77a4a4df8587..6c98c84938a1573d9f6bc7ce6008ff772a826886 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -142,7 +142,9 @@ u-boot.dis: u-boot
                $(OBJDUMP) -d $< > $@
 
 u-boot:                depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
-               $(LD) $(LDFLAGS) $(OBJS) $(LIBS) $(LIBS) -Map u-boot.map -o u-boot
+               $(LD) $(LDFLAGS) $(OBJS) \
+                       --start-group $(LIBS) --end-group \
+                       -Map u-boot.map -o u-boot
 
 subdirs:
                @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done