[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Automake should flag -l parameters in LDFLAGS
From: |
Jan Engelhardt |
Subject: |
Automake should flag -l parameters in LDFLAGS |
Date: |
Sat, 30 Mar 2013 15:41:13 +0100 (CET) |
User-agent: |
Alpine 2.01 (LNX 1266 2009-07-14) |
Given a Makefile.am with
myprog_LDADD = -pthread
automake will correctly output this warning
Makefile.am:17: error: linker flags such as '-pthread'
belong in 'myprog_LDFLAGS'
It would be nice to also have automake report -l flags in LDFLAGS that
actually belong into LIBADD/LDADD:
myprog_LDFLAGS = -ldl
is currently silently allowed, but is known to cause problems:
http://stackoverflow.com/questions/13610572/correcting-the-gcc-command-line-ordering-using-automake
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Automake should flag -l parameters in LDFLAGS,
Jan Engelhardt <=