381616e77a
Currently, when we need to do a conditional on the type of C library used, we need to take into account the three toolchain backends. As we are going to add eglibc support to the Buildroot toolchain backend, it would become even uglier, so this patch introduces two new hidden options: BR2_TOOLCHAIN_USES_UCLIBC and BR2_TOOLCHAIN_USES_GLIBC, that exist regardless of the toolchain backend. The entire Buildroot code base is converted to use those options. Note that we have intentionally created only one option (BR2_TOOLCHAIN_USES_GLIBC) for both glibc and eglibc, since they are essentially the same, as far as Buildroot is concerned. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
29 lines
869 B
Makefile
29 lines
869 B
Makefile
################################################################################
|
|
#
|
|
# gsl
|
|
#
|
|
################################################################################
|
|
|
|
GSL_VERSION = 1.15
|
|
GSL_SOURCE = gsl-$(GSL_VERSION).tar.gz
|
|
GSL_SITE = $(BR2_GNU_MIRROR)/gsl
|
|
GSL_INSTALL_STAGING = YES
|
|
GSL_LICENSE = GPLv3
|
|
GSL_LICENSE_FILES = COPYING
|
|
GSL_CONFIG_SCRIPTS = gsl-config
|
|
|
|
# uClibc pretends to have fenv support as it installs <fenv.h>, but in
|
|
# practice, it only implements it for i386. Problem reported upstream
|
|
# at: http://lists.busybox.net/pipermail/uclibc/2012-October/047067.html.
|
|
# So we tell gsl that fenv related functions are not available in this
|
|
# case.
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
|
ifneq ($(BR2_i386),y)
|
|
GSL_CONF_ENV = \
|
|
ac_cv_have_decl_feenableexcept=no \
|
|
ac_cv_have_decl_fesettrapenable=no
|
|
endif
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|