2
1

0005-scripts-build-make-it-possible-to-set-LDLIBS.patch 883 B

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