Skip to contentSkip to conversation

config.mak.in: Pass on LDFLAGS from configure

PATCH In review Neil Roberts 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config.mak.in: Pass on LDFLAGS from configure

The configure script allows you to specify flags to pass to the linker step in the LDFLAGS environment variable but this was being ignored in the Makefile. Now a make variable gets set to the value passed down from the configure script.

---

I'm sending this again because I am incompetent. Sorry.

 config.mak.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
config.mak.in +1 -0
index b776149..f67d673 100644
@@ -3,6 +3,7 @@
 
 CC = @CC@
 CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
 AR = @AR@
 TAR = @TAR@
 #INSTALL = @INSTALL@		# needs install-sh or install.sh in sources
Signature · 1 line
1.5.4.3
#1 lore raw

Am 21.08.2008 um 21:38 schrieb Neil Roberts:

Quoted 14 lines

The configure script allows you to specify flags to pass to the linker step in the LDFLAGS environment variable but this was being ignored in the Makefile. Now a make variable gets set to the value passed down from the configure script.

---

config.mak.in +0 -0
index b776149..f67d673 100644
@@ -3,6 +3,7 @@
 
Quoted 7 lines

CC = @CC@
CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
AR = @AR@
TAR = @TAR@
#INSTALL = @INSTALL@ # needs install-sh or install.sh in sources
--

configure also uses CPPFLAGS for preprocessor options like -I/my/path, which are dropped as well. Could we fold them into CFLAGS while we're at it?

Andreas