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,33 @@
From 4a11d4d03ef66729d302cc122fa0c693299a7776 Mon Sep 17 00:00:00 2001
From: Sakib Sajal <sakib.sajal@windriver.com>
Date: Wed, 18 Aug 2021 10:49:38 -0400
Subject: [PATCH] Makefile: use libprefix instead of libdir
libdir expands to "$(exec_prefix)/lib" where "lib" is hardcoded.
This is a problem for builds that enable MULTILIB since libraries
are to be installed in "lib64" directory. Hence allow the directory
to be configurable.
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
---
libraries/liblmdb/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index f254511..1ec74e6 100644
--- a/Makefile
+++ b/Makefile
@@ -46,11 +46,11 @@ all: $(ILIBS) $(PROGS)
install: $(ILIBS) $(IPROGS) $(IHDRS)
mkdir -p $(DESTDIR)$(bindir)
- mkdir -p $(DESTDIR)$(libdir)
+ mkdir -p $(DESTDIR)$(libprefix)
mkdir -p $(DESTDIR)$(includedir)
mkdir -p $(DESTDIR)$(mandir)/man1
for f in $(IPROGS); do cp $$f $(DESTDIR)$(bindir); done
- for f in $(ILIBS); do cp $$f $(DESTDIR)$(libdir); done
+ for f in $(ILIBS); do cp $$f $(DESTDIR)$(libprefix); done
for f in $(IHDRS); do cp $$f $(DESTDIR)$(includedir); done
for f in $(IDOCS); do cp $$f $(DESTDIR)$(mandir)/man1; done

View File

@@ -0,0 +1,22 @@
From b4d418bf3f78748d84e3cfb110833443eef34284 Mon Sep 17 00:00:00 2001
From: Justin Bronder <jsbronder@cold-front.org>
Date: Thu, 25 Aug 2022 17:22:20 -0400
Subject: [PATCH] make: set soname on liblmdb
---
libraries/liblmdb/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libraries/liblmdb/Makefile b/libraries/liblmdb/Makefile
index 1ec74e6..ea08cd6 100644
--- a/libraries/liblmdb/Makefile
+++ b/libraries/liblmdb/Makefile
@@ -66,7 +66,7 @@ liblmdb.a: mdb.o midl.o
liblmdb$(SOEXT): mdb.lo midl.lo
# $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS)
- $(CC) $(LDFLAGS) -pthread -shared -o $@ mdb.lo midl.lo $(SOLIBS)
+ $(CC) $(LDFLAGS) -pthread -shared -Wl,-soname,$@ -o $@ mdb.lo midl.lo $(SOLIBS)
mdb_stat: mdb_stat.o liblmdb.a
mdb_copy: mdb_copy.o liblmdb.a

View File

@@ -0,0 +1,25 @@
#!/bin/sh
cd tests
retval=0
for t in mtest*
do
mkdir testdb
./$t > /dev/null && ./mdb_stat testdb > /dev/null
if [ $? -ne 0 ]; then
echo "FAIL: $t"
retval=$(( ${retval} + 1))
else
echo "PASS: $t"
fi
rm -rf testdb
done
if [ $retval -eq 0 ] ; then
echo "PASS: lmdb"
else
echo "FAIL: lmdb"
fi
exit $retval