From c839b73c095c4709cd0e39a47a91c5e92c499de7 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni 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. This patch is used by buildroot: https://gitlab.com/buildroot.org/buildroot/-/commit/80f25d47060dea19b8f3b5fd84b6238375c54729 Signed-off-by: Thomas Petazzoni Signed-off-by: Bernd Kuhls --- scripts/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build b/scripts/build index 0f85562..5c68302 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