From 671c3f24923d53bae96c8ef4989c250a5ce787c3 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Wed, 30 Nov 2022 01:11:48 -0300 Subject: [PATCH] build: actually set LDFLAGS and LIBS in makefiles Both variables are used inside on src/prog.mk and src/so.mk, but they are not currently defined in any makefile, so their values cannot be substituted by ./configure. This means that the variables can be set when running make (such as with `make LDFLAGS=-Lfoo`), but changing them in configure.ac has no effect. The same applies when trying to set them when running ./configure (such as with `./configure LDFLAGS=-Lfoo`). --- config.mk.in | 2 ++ configure | 2 ++ configure.ac | 2 ++ 3 files changed, 6 insertions(+) diff --git a/config.mk.in b/config.mk.in index 9973b7eaa..45269afab 100644 --- a/config.mk.in +++ b/config.mk.in @@ -53,6 +53,8 @@ MANFLAGS = $(HAVE_LTS) $(HAVE_OUTPUT) $(HAVE_X11) $(HAVE_PRIVATE_HOME) $(HAVE_AP CC=@CC@ CFLAGS=@CFLAGS@ +LDFLAGS=@LDFLAGS@ +LIBS=@LIBS@ ifdef NO_EXTRA_CFLAGS else diff --git a/configure b/configure index 523128f87..51767d296 100755 --- a/configure +++ b/configure @@ -5260,8 +5260,10 @@ cat <