This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: GNU make builtin rules produce linker error due to command line arguments order
- From: Greg Chicares <gchicares at sbcglobal dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 06 Apr 2010 23:41:44 +0000
- Subject: Re: GNU make builtin rules produce linker error due to command line arguments order
- References: <4BBBC2AE.4080606@vub.ac.be>
On 2010-04-06 23:24Z, Robrecht Dewaele wrote:
>
> ##### Using builtin make rules and LDFLAGS seems to yield an incorrect
> order of arguments for cc.
> $ LDFLAGS=-lpopt make options
http://www.gnu.org/software/make/manual/html_node/Catalogue-of-Rules.html#Catalogue-of-Rules
| The precise command used is `$(CC) $(LDFLAGS) n.o $(LOADLIBES) $(LDLIBS)'.
so use
LDLIBS=-lpopt make options
instead.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple