GNU bug report logs - #34925
Overwriting target_LDFLAGS within conditionals

Previous Next

Package: automake;

Reported by: Дилян Палаузов <dilyan.palauzov <at> aegee.org>

Date: Wed, 20 Mar 2019 17:32:02 UTC

Severity: normal

Done: Karl Berry <karl <at> freefriends.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Karl Berry <karl <at> freefriends.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#34925: closed (Overwriting target_LDFLAGS within conditionals)
Date: Tue, 23 Feb 2021 22:32:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 23 Feb 2021 15:31:25 -0700
with message-id <202102232231.11NMVPak002438 <at> freefriends.org>
and subject line 
has caused the debbugs.gnu.org bug report #34925,
regarding Overwriting target_LDFLAGS within conditionals
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
34925: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=34925
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Дилян Палаузов
 <dilyan.palauzov <at> aegee.org>
To: bug-automake <at> gnu.org
Subject: Overwriting target_LDFLAGS within conditionals
Date: Wed, 20 Mar 2019 17:26:08 +0000
Hello,

my reading of the automake manual is that for an AM_CONDITIONAL Z

AM_LDFLAGS = -flto
if Z
a_LDFLAGS = -O3
endif

means:

if Z is defined, a_LDFLAGS is used and AM_LDFLAGS are not used.
if Z is not defined, a_LDFLAGS is absent and AM_LDFLAGS are used.

But looking in Makefile.in the code looks like this:

@Z_TRUE <at> a_LDFLAGS = -O3
a_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
        $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
        $(AM_CFLAGS) $(CFLAGS) $(a_LDFLAGS) $(LDFLAGS) -o $@

which means, that AM_LDFLAGS is always ignored.

The manual says in “Program and Library Variables”:

‘maude_LDFLAGS’
     This variable is used to pass extra flags to the link step of a
     program or a shared library.  It overrides the ‘AM_LDFLAGS’
     variable.

Regards
  Дилян



[Message part 3 (message/rfc822, inline)]
From: Karl Berry <karl <at> freefriends.org>
To: 34925-done <at> debbugs.gnu.org
Date: Tue, 23 Feb 2021 15:31:25 -0700


This bug report was last modified 4 years and 147 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.