ramspeed: use provided linker flags as well
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 29 Jun 2012 13:09:10 +0000 (15:09 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 29 Jun 2012 13:09:10 +0000 (15:09 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/ramspeed/Makefile
package/ramspeed/ramspeed.mk

index acb8cfd8d851841f2a6a3e3c814715938bcee947..f4a4de6a1e96ef1549725a6f3ffc53a76a4ed0ab 100644 (file)
@@ -2,13 +2,13 @@
 all: generic
 
 generic: ramspeed.c fltmem.c fltmark.c intmem.c intmark.c
-       $(CC) $(CFLAGS) $^ -o ramspeed
+       $(CC) $(CFLAGS) $(LDFLAGS) $^ -o ramspeed
 
 i386: ramspeed.c i386/*.s i386/cpuinfo/*.s
-       $(CC) $(CFLAGS) -DI386_ASM $^ -o ramspeed
+       $(CC) $(CFLAGS) -DI386_ASM $(LDFLAGS) $^ -o ramspeed
 
 x86_64: ramspeed.c amd64/*.s
-       $(CC) $(CFLAGS) -DAMD64_ASM $^ -o ramspeed
+       $(CC) $(CFLAGS) -DAMD64_ASM $(LDFLAGS) $^ -o ramspeed
 
 clean:
        rm -f *.o ramspeed
index 9ac21ad1ecaf949cee1c971d0e279d48c993aba7..478c2fbf00b43e93dc89b7a0ea1dc8b7c1eed3fb 100644 (file)
@@ -10,8 +10,7 @@ RAMSPEED_ARCH = $(if $(BR2_i386),i386)$(if $(BR2_x86_64),x86_64)
 
 define RAMSPEED_BUILD_CMDS
        cp -f package/ramspeed/Makefile $(@D)
-       CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
-               make -C $(@D) $(RAMSPEED_ARCH)
+       $(TARGET_CONFIGURE_OPTS) make -C $(@D) $(RAMSPEED_ARCH)
 endef
 
 define RAMSPEED_INSTALL_TARGET_CMDS