Subject: generated LDFLAGS order incorrect
From: "A.Timmermans" <[email-masked]>
To: [email-masked]
Date: Fri, 14 Sep 2018 22:06:29 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

incorrect, does not compile:

LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@

CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@

correct, compiles:

LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS)  -o $@ $(AM_LDFLAGS) $(LDFLAGS)

CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) -o $@ $(AM_LDFLAGS) 
$(LDFLAGS)

in versions:

automake --version
automake (GNU automake) 1.15.1

aclocal --version
aclocal (GNU automake) 1.15.1

autoconf --version
autoconf (GNU Autoconf) 2.69

cc --version
cc (Ubuntu/Linaro 7.3.0-16ubuntu3) 7.3.0

gcc --version
gcc (Ubuntu/Linaro 7.3.0-16ubuntu3) 7.3.0

g++ --version
g++ (Ubuntu/Linaro 7.3.0-16ubuntu3) 7.3.0

KR,

A.Timmermans