libs/libtirpc: fix host compile with clang 12.0.0

1.clang ld not supports symvers
2.macos has not mutex_lock, use pthread_mutex_lock instead
3.macos not define SO_PEERCRED, use LOCAL_PEERCRED instead

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
(cherry picked from commit 1a9323064c)
This commit is contained in:
Liangbin Lian
2020-11-18 23:20:38 +08:00
parent b77fabe014
commit c68be0b846
2 changed files with 108 additions and 1 deletions
+5 -1
View File
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libtirpc
PKG_VERSION:=1.2.6
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_URL:=@SF/libtirpc
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
@@ -30,6 +30,10 @@ endef
CONFIGURE_ARGS += --disable-gssapi
HOST_CONFIGURE_ARGS += --disable-gssapi
ifeq ($(HOST_OS),Darwin)
HOST_CONFIGURE_ARGS += --disable-symvers
endif
TARGET_CFLAGS += -DGQ
HOST_CFLAGS += -DGQ