From 7e2e38cab643322b7981ab2f9d2205b572c9fb73 Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Wed, 8 Dec 2021 23:50:50 +0100 Subject: [PATCH] bossa: fix fpic compilation Fixes: #17287 ("bossa: recompile with -fPIC") Signed-off-by: Nick Hainke --- utils/bossa/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/utils/bossa/Makefile b/utils/bossa/Makefile index 443664bd7..5760fcfaf 100644 --- a/utils/bossa/Makefile +++ b/utils/bossa/Makefile @@ -32,9 +32,13 @@ define Package/bossa/description endef define Build/Compile - COMMON_CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \ - COMMON_LDFLAGS="$(TARGET_LINKFLAGS) $(TARGET_LDFLAGS)" \ - $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS)" bin/bossac + $(MAKE) -C $(PKG_BUILD_DIR) bin/bossac \ + CC="$(TARGET_CC_NOCACHE)" \ + CXX="$(TARGET_CXX_NOCACHE)" \ + CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \ + CXXFLAGS="$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS)" \ + CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" endef define Package/bossa/install