mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-04 19:03:28 +08:00
35b35d90b1
Drop APG_CFLAGS (which is empty) to correctly set CFLAGS with
TARGET_CFLAGS (which will contain -static) passed by
TARGET_CONFIGURE_OPTS. Moreover, pass TARGET_CFLAGS to FLAGS which is
used to build apgbfm. This will fix the following musl static build
failure raised since the addition of the package in commit
99eb1a7019
:
/home/buildroot/autobuild/instance-2/output-1/host/lib/gcc/armeb-buildroot-linux-musleabi/10.3.0/../../../../armeb-buildroot-linux-musleabi/bin/ld: /home/buildroot/autobuild/instance-2/output-1/host/lib/gcc/armeb-buildroot-linux-musleabi/10.3.0/libgcc.a(_dvmd_lnx.o): in function `__aeabi_ldiv0':
/home/buildroot/autobuild/instance-2/output-1/build/host-gcc-final-10.3.0/build/armeb-buildroot-linux-musleabi/libgcc/../../../libgcc/config/arm/lib1funcs.S:1499: undefined reference to `raise'
Fixes:
- http://autobuild.buildroot.org/results/0e53957965363ceb7141bf8a612998abec893b17
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
21 lines
522 B
Makefile
21 lines
522 B
Makefile
################################################################################
|
|
#
|
|
# apg
|
|
#
|
|
################################################################################
|
|
|
|
APG_VERSION = 2.3.0b
|
|
APG_SITE = $(call github,wilx,apg,v$(APG_VERSION))
|
|
APG_LICENSE = BSD-3-Clause
|
|
APG_LICENSE_FILES = COPYING
|
|
|
|
define APG_BUILD_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) FLAGS="$(TARGET_CFLAGS)" -C $(@D)
|
|
endef
|
|
|
|
define APG_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/apg $(TARGET_DIR)/usr/bin/apg
|
|
endef
|
|
|
|
$(eval $(generic-package))
|