Files
buildroot/package/lmbench/0005-scripts-build-make-it-possible-to-set-LDLIBS.patch
Bernd Kuhls dbd24b0bfd package/lmbench: bump version
Last release dates back to 2007, switch _SITE to active fork:
https://sourceforge.net/p/lmbench/patches/3/#4472

Removed patch 0009 which is included in this bump.

Rebased remaining patches.

Sent some existing patches to new active upstream repo and added
Upstream: tags.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2026-01-16 23:13:05 +01:00

32 lines
900 B
Diff

From 2c7ff6989bc6161d8a2cc823d3aa7c9cb1deca80 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Date: Wed, 4 Dec 2024 22:59:31 +0100
Subject: [PATCH] scripts/build: make it possible to set LDLIBS
LDLIBS is currently unconditionnally set to '-lm', but doesn't allow
the user to provide additional libraries to link with.
Upstream: https://github.com/intel/lmbench/pull/44
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
scripts/build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/build b/scripts/build
index 60b755c..4820d80 100755
--- a/scripts/build
+++ b/scripts/build
@@ -18,7 +18,7 @@ done
trap 'rm -f ${BASE}$$.s ${BASE}$$.c ${BASE}$$.o ${BASE}$$; exit 1' 1 2 15
-LDLIBS="-lm"
+LDLIBS="${LDLIBS} -lm"
# check for HP-UX's ANSI compiler
echo "main(int ac, char *av[]) { int i; }" > ${BASE}$$.c
--
2.47.0