boost: bump to version 1.63.0
[buildroot-gz.git] / package / uclibc-ng-test / uclibc-ng-test.mk
blob610ca010fbf2750c13a99bf29cbd43e257dacfb8
1 ################################################################################
3 # uclibc-ng-test
5 ################################################################################
7 UCLIBC_NG_TEST_VERSION = c9b9876cefc142a23aa622b821290ed16af80058
8 UCLIBC_NG_TEST_SITE = git://uclibc-ng.org/git/uclibc-ng-test
9 UCLIBC_NG_TEST_LICENSE = LGPLv2.1+
10 UCLIBC_NG_TEST_LICENSE_FILES = COPYING.LIB
12 # the math tests are recently synced from glibc and need more adaption before
13 # regular testing is possible
14 UCLIBC_NG_TEST_MAKE_ENV += NO_MATH=1
16 # locale tests are not compatible with musl, yet
17 ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
18 UCLIBC_NG_TEST_MAKE_ENV += NO_LOCALE=1
19 endif
20 ifeq ($(BR2_USE_WCHAR),)
21 UCLIBC_NG_TEST_MAKE_ENV += NO_WCHAR=1
22 endif
23 ifeq ($(BR2_ENABLE_LOCALE),)
24 UCLIBC_NG_TEST_MAKE_ENV += NO_LOCALE=1
25 endif
26 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
27 UCLIBC_NG_TEST_MAKE_ENV += NO_TLS=1 NO_THREADS=1
28 endif
29 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS_NPTL),)
30 UCLIBC_NG_TEST_MAKE_ENV += NO_TLS=1 NO_NPTL=1
31 endif
32 # most NPTL/TLS tests use dlopen
33 ifeq ($(BR2_STATIC_LIBS),y)
34 UCLIBC_NG_TEST_MAKE_ENV += NO_TLS=1 NO_NPTL=1 NO_DL=1
35 endif
37 # to execute tests in a deterministic order, call test_gen separately
38 define UCLIBC_NG_TEST_BUILD_CMDS
39 $(TARGET_MAKE_ENV) $(UCLIBC_NG_TEST_MAKE_ENV) $(MAKE) -C $(@D) \
40 CC="$(TARGET_CC)" \
41 UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
42 UCLIBC_EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
43 test_compile
44 $(TARGET_MAKE_ENV) $(UCLIBC_NG_TEST_MAKE_ENV) $(MAKE1) -C $(@D) \
45 CC="$(TARGET_CC)" \
46 UCLIBC_EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
47 test_gen
48 endef
50 define UCLIBC_NG_TEST_INSTALL_TARGET_CMDS
51 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
52 endef
54 $(eval $(generic-package))