kumquat-buildroot/package/qhull/qhull.mk
Fabrice Fontaine 2cf7e51a0e package/qhull: force Release build
Force Release mode to always build qhull_r library instead of qhull_rd
and avoid the following build failure with python-matplotlib raised
since bump to version 3.4.3 in commit
23ca2efef1 and
2dacb1c909:

/home/giuliobenetti/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/powerpc64-buildroot-linux-gnu/9.3.0/../../../../powerpc64-buildroot-linux-gnu/bin/ld: cannot find -lqhull_r

Fixes:
 - http://autobuild.buildroot.org/results/c2b/c2ba407275863bafe42faa4b335a20c6fa9e1d55/build-end.log

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2021-11-09 21:46:51 +01:00

29 lines
954 B
Makefile

################################################################################
#
# qhull
#
################################################################################
QHULL_VERSION = 8.0.2
QHULL_SITE = http://www.qhull.org/download
QHULL_SOURCE = qhull-2020-src-$(QHULL_VERSION).tgz
QHULL_INSTALL_STAGING = YES
QHULL_LICENSE = BSD-Style
QHULL_LICENSE_FILES = COPYING.txt
# Force Release mode to always build qhull_r instead of qhull_rd
QHULL_CONF_OPTS = -DCMAKE_BUILD_TYPE=Release
# BUILD_SHARED_LIBS is handled in pkg-cmake.mk as it is a generic cmake variable
# although BUILD_STATIC_LIBS=ON is default, make it explicit,
# cmake and static/shared libs is confusing enough already.
ifeq ($(BR2_STATIC_LIBS),y)
QHULL_CONF_OPTS += -DBUILD_STATIC_LIBS=ON
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
QHULL_CONF_OPTS += -DBUILD_STATIC_LIBS=ON
else ifeq ($(BR2_SHARED_LIBS),y)
QHULL_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF
endif
$(eval $(cmake-package))