1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/relifx: fix compilation with clang

This commit is contained in:
Marian Buschsieweke 2023-05-20 21:43:21 +02:00 committed by Marian Buschsieweke
parent 639690eeb6
commit 53b08d9f38
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94
3 changed files with 5 additions and 7 deletions

View File

@ -15,6 +15,11 @@ CFLAGS += -Wno-unused-function -Wno-old-style-definition -Wno-unused-parameter \
-Wno-pedantic -Wno-array-parameter -Wno-unused-but-set-variable \
-Wno-stringop-overflow
ifeq (llvm,$(TOOLCHAIN))
CFLAGS += $(GCC_C_INCLUDES)
CXXFLAGS += $(GCC_CXX_INCLUDES)
endif
TOOLCHAIN_FILE = $(PKG_SOURCE_DIR)/xcompile-toolchain.cmake
all: $(BINDIR)/$(PKG_NAME).a

View File

@ -1,10 +1,3 @@
INCLUDES += -I$(PKGDIRBASE)/relic/include
INCLUDES += -I$(BINDIR)/pkg-build/relic/include
ARCHIVES += $(BINDIR)/relic.a
ifneq (,$(filter cortex-m%,$(CPU_CORE)))
# relic package package is not using system includes right now, so
# many newlib headers (not even stdio.h) are not found.
# Fixed in #9821 for jerryscript, should be applicable here too.
TOOLCHAINS_BLACKLIST += llvm
endif