libpri: remove Werror 581/head
authorRosen Penev <rosenp@gmail.com>
Sun, 30 Aug 2020 21:04:32 +0000 (14:04 -0700)
committerRosen Penev <rosenp@gmail.com>
Fri, 9 Oct 2020 09:31:31 +0000 (02:31 -0700)
Fixes compilation under musl 1.2.x where time_t is 64-bit.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libpri/Makefile
libs/libpri/patches/010-no-werror.patch [new file with mode: 0644]

index 96da88a42e07745d72c2f55342a766b7ba3b69e2..5ed490092017a83e3433d64400a528b0a8cb8334 100644 (file)
@@ -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 (file)
index 0000000..e66f428
--- /dev/null
@@ -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