OSDN Git Service

buildsys: use = for --sort-section linker flag
authorMike Frysinger <vapier@gentoo.org>
Tue, 17 Jan 2012 03:00:18 +0000 (22:00 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 17 Jan 2012 06:47:23 +0000 (01:47 -0500)
The spaces aren't handled correctly (currently) when outputting the
CFLAGS version of the linker flag.

Reported-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Rules.mak

index 84d3fec..792ced8 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
@@ -361,8 +361,8 @@ endif
        #   0 .text         xxxxxxxx  00000000  00000000  xxxxxxxx  2**2 <===!
        CPU_CFLAGS-y  += $(CFLAG_-ffunction-sections) $(CFLAG_-fdata-sections)
        CPU_LDFLAGS-y += $(CFLAG_-Wl--sort-common)
-$(eval $(call check-ld-var,--sort-section%alignment))
-       CPU_LDFLAGS-y += $(CFLAG_-Wl--sort-section%alignment)
+$(eval $(call check-ld-var,--sort-section=alignment))
+       CPU_LDFLAGS-y += $(CFLAG_-Wl--sort-section=alignment)
 
        CPU_LDFLAGS-y+=-m32
        CPU_CFLAGS-y+=-m32