From 7a9cc85b228528af67c4ec6c4fc8f19b194f8d2d Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 30 Aug 2020 14:04:32 -0700 Subject: [PATCH] libpri: remove Werror Fixes compilation under musl 1.2.x where time_t is 64-bit. Signed-off-by: Rosen Penev --- libs/libpri/Makefile | 2 +- libs/libpri/patches/010-no-werror.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 libs/libpri/patches/010-no-werror.patch diff --git a/libs/libpri/Makefile b/libs/libpri/Makefile index 96da88a..5ed4900 100644 --- a/libs/libpri/Makefile +++ b/libs/libpri/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libpri PKG_VERSION:=1.6.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/libpri/releases diff --git a/libs/libpri/patches/010-no-werror.patch b/libs/libpri/patches/010-no-werror.patch new file mode 100644 index 0000000..e66f428 --- /dev/null +++ b/libs/libpri/patches/010-no-werror.patch @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -68,7 +68,7 @@ DYNAMIC_OBJS= \ + $(STATIC_OBJS) + CFLAGS ?= -g + CFLAGS += $(CPPFLAGS) +-CFLAGS += -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes ++CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes + CFLAGS += -fPIC $(ALERTING) $(LIBPRI_OPT) $(COVERAGE_CFLAGS) + INSTALL_PREFIX=$(DESTDIR) + INSTALL_BASE=/usr -- 2.30.2