]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
picocom: force target LDFLAGS
authorBaruch Siach <baruch@tkos.co.il>
Wed, 3 May 2017 12:46:35 +0000 (15:46 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 3 May 2017 15:24:43 +0000 (17:24 +0200)
This allows a static build of picocom when BR2_STATIC_LIBS=y but the toolchain
provides static and shared libraries.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/picocom/picocom.mk

index 07bda0e745cd5e971c54956f130afe8ac84a8051..4e25556f4c55889d48075fbfe686826c7223ad9a 100644 (file)
@@ -10,7 +10,8 @@ PICOCOM_LICENSE = GPL-2.0+
 PICOCOM_LICENSE_FILES = LICENSE.txt
 
 define PICOCOM_BUILD_CMDS
-       $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+       $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) \
+               LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
 endef
 
 define PICOCOM_INSTALL_TARGET_CMDS