mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-05 00:53:32 +08:00
tools: add libpopt host build
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
f69da3d299
commit
d01fb59be7
21
tools/popt/Makefile
Normal file
21
tools/popt/Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=popt
|
||||
PKG_VERSION:=1.16
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://rpm5.org/files/popt
|
||||
PKG_HASH:=e728ed296fe9f069a0e005003c3d6b2dde3d9cad453422a10d6558616d304cc8
|
||||
|
||||
HOST_FIXUP:=autoreconf
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
|
||||
HOST_CONFIGURE_ARGS += \
|
||||
--disable-nls \
|
||||
--disable-rpath \
|
||||
--enable-shared=no \
|
||||
--without-libiconv-prefix \
|
||||
--without-libintl-prefix
|
||||
|
||||
$(eval $(call HostBuild))
|
25
tools/popt/patches/900-autoconf-compat.patch
Normal file
25
tools/popt/patches/900-autoconf-compat.patch
Normal file
@ -0,0 +1,25 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -46,7 +46,7 @@ AC_GCC_TRADITIONAL
|
||||
AC_SYS_LARGEFILE
|
||||
|
||||
AC_ISC_POSIX
|
||||
-AM_C_PROTOTYPES
|
||||
+AC_C_PROTOTYPES
|
||||
|
||||
AC_CHECK_HEADERS(float.h fnmatch.h glob.h langinfo.h libintl.h mcheck.h unistd.h)
|
||||
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -35,9 +35,10 @@ tdict_LDADD = $(usrlib_LTLIBRARIES)
|
||||
noinst_SCRIPTS = testit.sh
|
||||
|
||||
TESTS_ENVIRONMENT = \
|
||||
+TESTS_DIR="$(top_srcdir)" \
|
||||
test1="$(top_builddir)/test1"
|
||||
|
||||
-TESTS = $(top_srcdir)/testit.sh
|
||||
+TESTS = testit.sh
|
||||
|
||||
include_HEADERS = popt.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user