From 7b29d6dc77304db19a4a6cb82f05d30ab68abf78 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Tue, 7 Jun 2022 19:26:43 +0200 Subject: [PATCH] package/pimd: fix static build with uclibc Pass LDFLAGS (which will contain -static) to fix the following static build failure with uclibc: /nvmedata/autobuild/instance-15/output-1/host/lib/gcc/sparc-buildroot-linux-uclibc/10.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: /nvmedata/autobuild/instance-15/output-1/host/lib/gcc/sparc-buildroot-linux-uclibc/10.3.0/libgcc.a(unwind-dw2-fde-dip.o): in function `_Unwind_Find_FDE': /nvmedata/autobuild/instance-15/output-1/build/host-gcc-final-10.3.0/build/sparc-buildroot-linux-uclibc/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:469: undefined reference to `dl_iterate_phdr' Fixes: - http://autobuild.buildroot.org/results/168202f65d168acc55b4d946c2e2416bf890c32c Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/pimd/pimd.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/pimd/pimd.mk b/package/pimd/pimd.mk index 7a12f8fe0d..8abfbd5644 100644 --- a/package/pimd/pimd.mk +++ b/package/pimd/pimd.mk @@ -26,7 +26,7 @@ endef define PIMD_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) CROSS=$(TARGET_CROSS) \ - CC=$(TARGET_CC) -C $(@D) + CC=$(TARGET_CC) LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D) endef define PIMD_INSTALL_TARGET_CMDS