added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,58 @@
From e192da006dd9b0ecbbef540a3e86b65ff88e89e2 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 1 Sep 2022 13:28:29 -0700
Subject: [PATCH] configure: Fix check functions for AC_CHECK_LIB test
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
configure.in | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/configure.in b/configure.in
index 5b24947..0542490 100644
--- a/configure.in
+++ b/configure.in
@@ -247,30 +247,30 @@ test -n "$LDFLAGS" && MYLDFLAGS="$LDFLAGS $MYLDFLAGS"
AC_C_BIGENDIAN(MYCPPFLAGS="$MYCPPFLAGS -D_MYBIGEND")
# Underlying libraries
-AC_CHECK_LIB(c, main)
-AC_CHECK_LIB(m, main)
+AC_CHECK_LIB(c, printf)
+AC_CHECK_LIB(m, pow)
if test "$enable_pthread" != "no"
then
- AC_CHECK_LIB(pthread, main)
- AC_CHECK_LIB(rt, main)
+ AC_CHECK_LIB(pthread, pthread_create)
+ AC_CHECK_LIB(rt, clock_gettime)
fi
if test "$enable_zlib" != "no"
then
- AC_CHECK_LIB(z, main)
+ AC_CHECK_LIB(z, inflate)
fi
if test "$enable_bzip" != "no"
then
- AC_CHECK_LIB(bz2, main)
+ AC_CHECK_LIB(bz2, BZ2_bzCompressInit)
fi
if test "$enable_exlzma" = "yes"
then
- AC_CHECK_LIB(lzma, main)
+ AC_CHECK_LIB(lzma, lzma_easy_buffer_encode)
fi
if test "$enable_exlzo" = "yes"
then
- AC_CHECK_LIB(lzo2, main)
+ AC_CHECK_LIB(lzo2, lzo1x_1_compress)
fi
-AC_CHECK_LIB(tokyocabinet, main, AC_MSG_WARN([old version of Tokyo Cabinet was detected]))
+AC_CHECK_LIB(tokyocabinet, tcbdbopen, AC_MSG_WARN([old version of Tokyo Cabinet was detected]))
# Necessary headers
AC_CHECK_HEADER(stdlib.h, true, AC_MSG_ERROR([stdlib.h is required]))
--
2.37.3

View File

@@ -0,0 +1,43 @@
Upstream-Status: Inappropriate [embedded specific]
There are hardcode paths in configure.in eg: /usr/include, $HOME/include etc.
These paths will cause Makefile to search host path when doing cross-compiling.
and bitbake will prompt this as an error. So remove them.
Signed-off-by: Song.Li <Song.Li@windriver.com>
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
configure.in | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/configure.in b/configure.in
index bcfd5bc..5b24947 100644
--- a/configure.in
+++ b/configure.in
@@ -32,21 +32,15 @@ MYPCFILES="tokyocabinet.pc"
# Building flags
MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char -O2"
-MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -I$HOME/include -I/usr/local/include"
+MYCPPFLAGS="-I."
MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__"
-MYLDFLAGS="-L. -L\$(LIBDIR) -L$HOME/lib -L/usr/local/lib"
+MYLDFLAGS="-L."
MYCMDLDFLAGS=""
MYRUNPATH="\$(LIBDIR)"
MYLDLIBPATHENV="LD_LIBRARY_PATH"
MYPOSTCMD="true"
# Building paths
-PATH="$PATH:$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
-PATH="$PATH:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/xpg4/bin:/usr/xpg6/bin:/usr/ucb"
-CPATH="$HOME/include:/usr/local/include:$CPATH"
-LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LIBRARY_PATH"
-LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH"
-PKG_CONFIG_PATH="$HOME/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
export PATH CPATH LIBRARY_PATH LD_LIBRARY_PATH PKG_CONFIG_PATH
--
1.7.9.5