6ca1b3ee2a
libmagic is an optional dependency of gensoimage that can raise the following build failure: /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: /home/buildroot/autobuild/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libmagic.a(compress.o): in function `uncompressbuf': compress.c:(.text+0x7bc): undefined reference to `lzma_auto_decoder' /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: compress.c:(.text+0x828): undefined reference to `lzma_code' /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: compress.c:(.text+0x848): undefined reference to `lzma_end' collect2: error: ld returned 1 exit status genisoimage/CMakeFiles/genisoimage.dir/build.make:628: recipe for target 'genisoimage/genisoimage' failed Fixes: - http://autobuild.buildroot.org/results/7e06edc363817c9c9a1687ec89e9984a90a2012d Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
32 lines
892 B
Makefile
32 lines
892 B
Makefile
################################################################################
|
|
#
|
|
# cdrkit
|
|
#
|
|
################################################################################
|
|
|
|
CDRKIT_VERSION = 1.1.11
|
|
CDRKIT_SOURCE = cdrkit_$(CDRKIT_VERSION).orig.tar.gz
|
|
CDRKIT_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/c/cdrkit
|
|
CDRKIT_DEPENDENCIES = libcap bzip2 zlib
|
|
HOST_CDRKIT_DEPENDENCIES = host-libcap host-bzip2 host-zlib
|
|
CDRKIT_LICENSE = GPL-2.0
|
|
CDRKIT_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_ENDIAN),"BIG")
|
|
CDRKIT_CONF_OPTS += -DBITFIELDS_HTOL=1
|
|
else
|
|
CDRKIT_CONF_OPTS += -DBITFIELDS_HTOL=0
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_FILE),y)
|
|
CDRKIT_DEPENDENCIES += host-pkgconf file
|
|
CDRKIT_CONF_OPTS += \
|
|
-DUSE_MAGIC=ON \
|
|
-DEXTRA_LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libmagic`"
|
|
else
|
|
CDRKIT_CONF_OPTS += -DUSE_MAGIC=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|
|
$(eval $(host-cmake-package))
|