diff options
author | fuzzard <fuzzard@kodi.tv> | 2024-03-09 18:35:03 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2024-03-12 09:04:51 +1000 |
commit | ea76ee2c292695b07400cf9355d1c4885fa9e65c (patch) | |
tree | f696fc66fbf79c5d6bb193394e20eb56e832ea98 | |
parent | e82c3f9bad5b6f42b4592951179607c90636704f (diff) |
[tools/depends] LLVM15 support - reduce errors to warnings
LLVM 15 raised some warning types to errors. For our purposes, just lower back
to warnings.
-rw-r--r-- | tools/depends/native/pkg-config/Makefile | 4 | ||||
-rw-r--r-- | tools/depends/target/gnutls/Makefile | 4 | ||||
-rw-r--r-- | tools/depends/target/openssl/Makefile | 2 | ||||
-rw-r--r-- | tools/depends/target/samba-gplv3/Makefile | 3 |
4 files changed, 13 insertions, 0 deletions
diff --git a/tools/depends/native/pkg-config/Makefile b/tools/depends/native/pkg-config/Makefile index 1ba81b7a30..2973b69d89 100644 --- a/tools/depends/native/pkg-config/Makefile +++ b/tools/depends/native/pkg-config/Makefile @@ -17,6 +17,10 @@ ifeq ($(CROSS_COMPILING),no) PC_PATH:=$(PC_PATH):/usr/lib/pkgconfig:/usr/lib/$(HOST)/pkgconfig:/usr/share/pkgconfig endif +# LLVM 15 has raised this to error by default. drop back to warning +CFLAGS=$(NATIVE_CFLAGS) -Wno-error=int-conversion +export CFLAGS + # configuration settings CONFIGURE=./configure --prefix=$(PREFIX) --enable-indirect-deps --with-pc-path=$(PC_PATH) --with-internal-glib LIBDYLIB=$(PLATFORM)/pkg-config diff --git a/tools/depends/target/gnutls/Makefile b/tools/depends/target/gnutls/Makefile index 335667d32a..f60773dce9 100644 --- a/tools/depends/target/gnutls/Makefile +++ b/tools/depends/target/gnutls/Makefile @@ -34,6 +34,10 @@ CONFIGURE=./configure --prefix=$(PREFIX) \ --without-idn \ $(CONFIGURE_OPTIONS) +# LLVM 15 has raised this to error by default. drop back to warning +CFLAGS+= -Wno-error=implicit-int +export CFLAGS + LIBDYLIB=$(PLATFORM)/lib/.libs/lib$(LIBNAME).a all: .installed-$(PLATFORM) diff --git a/tools/depends/target/openssl/Makefile b/tools/depends/target/openssl/Makefile index 1a3dceb0b7..c03177e484 100644 --- a/tools/depends/target/openssl/Makefile +++ b/tools/depends/target/openssl/Makefile @@ -21,6 +21,8 @@ else endif endif ifeq ($(OS), darwin_embedded) + # LLVM 15 has raised this to error by default. drop back to warning + CFLAGS+= -Wno-error=implicit-int export SDKROOT CFLAGS OPENSSLPLATFORM=kodi-$(TARGET_PLATFORM)-$(CPU) ifeq ($(TARGET_PLATFORM),appletvos) diff --git a/tools/depends/target/samba-gplv3/Makefile b/tools/depends/target/samba-gplv3/Makefile index 9e1c623e75..20a77dfe42 100644 --- a/tools/depends/target/samba-gplv3/Makefile +++ b/tools/depends/target/samba-gplv3/Makefile @@ -52,6 +52,9 @@ else endif endif +# LLVM 15 has raised this to error by default. drop back to warning +CFLAGS+= -Wno-error=int-conversion + export PERL5LIB:=$(PERLMODULE):$(PERL5LIB) export CC CXX CPP AR RANLIB LD AS NM STRIP TOOLCHAIN |