0
0
mirror of https://github.com/openwrt/packages.git synced 2025-09-28 11:32:58 +00:00
Files
packages/libs/libtirpc/Makefile
John Audia 6736b2d19d libtirpc: fix build for client packages
Version 1.3.7 introduced a feature which moved symbols into an optional
database section[1]. Add corresponding configure args to fix the build
with our packages. This commit adds the new option to ensure client
packages (snort, rpcbind, lsof, etc.) build without error.

Build system: x86/64 (using external toolchain from snapshot)
Build-tested: x86/64

Co-authored-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: John Audia <therealgraysky@proton.me>
2025-08-30 20:43:31 +03:00

58 lines
1.5 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=libtirpc
PKG_VERSION:=1.3.7
PKG_RELEASE:=2
PKG_SOURCE_URL:=@SF/libtirpc
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_HASH:=b47d3ac19d3549e54a05d0019a6c400674da716123858cfdb6d3bdd70a66c702
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:libtirpc_project:libtirpc
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
HOST_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
define Package/libtirpc
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Library TI RPC for RPC bindings
URL:=http://libtirpc.sourceforge.net/
DEPENDS:=+libpthread
endef
CONFIGURE_ARGS += --disable-gssapi --enable-rpcdb
HOST_CONFIGURE_ARGS += --disable-gssapi --disable-shared --enable-rpcdb
ifeq ($(HOST_OS),Darwin)
HOST_CONFIGURE_ARGS += --disable-symvers
endif
TARGET_CFLAGS += -DGQ
HOST_CFLAGS += -DGQ -std=c99
define Package/libtirpc/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtirpc.so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/netconfig $(1)/etc/
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtirpc.{a,so*} $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtirpc.pc $(1)/usr/lib/pkgconfig/libtirpc.pc
endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,libtirpc))