0132536197
Fix the following static build failure raised since bump to version 0.28
in commit 1b677db703
:
/home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: /home/buildroot/autobuild/run/instance-2/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libpng.a(png.o): in function `png_reset_crc':
png.c:(.text+0x738): undefined reference to `crc32'
Note that the custom, hand-rolled configure script inserts the LIBS we
pass on the command line, in front of the hard-coded LIBS, which
currently is just LIBS=-lpng, so we end up with a final LIBS set to:
LIBS=-L.../sysroot/usr/lib -lpng16 -lz -lpng
... the latter -lpng being redundant and unnecessary, but innocuous.
Fixes:
- http://autobuild.buildroot.org/results/97543d8df5c40818e05622490e4aad60b48934a6
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[yann.morin.1998@free.fr: split multi-line one item per line]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
41 lines
1014 B
Makefile
41 lines
1014 B
Makefile
################################################################################
|
|
#
|
|
# ocrad
|
|
#
|
|
################################################################################
|
|
|
|
OCRAD_VERSION = 0.28
|
|
OCRAD_SOURCE = ocrad-$(OCRAD_VERSION).tar.lz
|
|
OCRAD_SITE = $(BR2_GNU_MIRROR)/ocrad
|
|
OCRAD_LICENSE = GPL-2.0+
|
|
OCRAD_LICENSE_FILES = COPYING
|
|
OCRAD_INSTALL_STAGING = YES
|
|
OCRAD_DEPENDENCIES = host-pkgconf libpng
|
|
|
|
OCRAD_LIBS = `$(PKG_CONFIG_HOST_BINARY) --libs libpng`
|
|
|
|
# This is not a true autotools package.
|
|
define OCRAD_CONFIGURE_CMDS
|
|
cd $(@D) && \
|
|
$(TARGET_MAKE_ENV) \
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
LIBS="$(OCRAD_LIBS)"
|
|
endef
|
|
|
|
define OCRAD_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
|
endef
|
|
|
|
define OCRAD_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
|
endef
|
|
|
|
define OCRAD_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|