[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Makefile.am and xxx_LDFLAGS seems not working
From: |
Pauli Sundberg |
Subject: |
Makefile.am and xxx_LDFLAGS seems not working |
Date: |
Mon, 31 Jan 2011 12:39:04 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110127 Thunderbird/3.1.7 |
Hello!
I am trying to add -all-static flag for binaries compiled with autotools.
What i am doing wrong since to me it seems like _LDFLAGS is not working
when i have _LDFLAGS defined in Automake.am:
bin_PROGRAMS = linearize
linearize_SOURCES = \
Linearize/linearize_main.c Linearize/linearizeParameters.c \
Linearize/linearizeParameters.h
if COND_STATIC_BIN
linearize_LDFLAGS = -all-static
endif
If i look at the generated Makefile i can find:
linearize_LDFLAGS = -all-static
but the link command:
linearize$(EXEEXT): $(linearize_OBJECTS) $(linearize_DEPENDENCIES)
@rm -f linearize$(EXEEXT)
$(LINK) $(linearize_OBJECTS) $(linearize_LDADD) $(LIBS)
Where link is:
LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
$(LDFLAGS) -o $@
seems to ignore these linearize_LDFLAGS.
Full Automake.am can be found from:
http://susundberg.pastebin.com/LuhKbU1K
Generated automake.in:
http://susundberg.pastebin.com/7HTrC737
And generated Makefile:
http://susundberg.pastebin.com/rQHUXZc1
Any tips how to start figure out whats wrong? The project has lots of
Autoconf files and i would rather not post them all here.
Thanks!
Pauli Sundberg
- Makefile.am and xxx_LDFLAGS seems not working,
Pauli Sundberg <=