7b29d6dc77
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 <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
38 lines
977 B
Makefile
38 lines
977 B
Makefile
################################################################################
|
|
#
|
|
# pimd
|
|
#
|
|
################################################################################
|
|
|
|
PIMD_VERSION = 2.3.2
|
|
PIMD_SITE = https://github.com/troglobit/pimd/releases/download/$(PIMD_VERSION)
|
|
|
|
PIMD_LICENSE = BSD-3-Clause
|
|
PIMD_LICENSE_FILES = LICENSE LICENSE.mrouted
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_TOOLCHAIN_USES_MUSL),y)
|
|
PIMD_CONF_OPTS += --embedded-libc
|
|
endif
|
|
|
|
# The configure script is not autoconf based, so we use the
|
|
# generic-package infrastructure
|
|
define PIMD_CONFIGURE_CMDS
|
|
(cd $(@D); \
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
$(TARGET_CONFIGURE_ARGS) \
|
|
./configure $(PIMD_CONF_OPTS) \
|
|
)
|
|
endef
|
|
|
|
define PIMD_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) CROSS=$(TARGET_CROSS) \
|
|
CC=$(TARGET_CC) LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
|
|
endef
|
|
|
|
define PIMD_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) \
|
|
prefix=/usr -C $(@D) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|