Fix building with --as-needed LD flag
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>
Mon, 1 Dec 2008 22:01:43 +0000 (14:01 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 1 Dec 2008 22:01:43 +0000 (14:01 -0800)
commit1b6d4a8360ef141e49619e34ece27cbd9bc0374e
tree5d156e6293409e18354b760d322ab790eacd1946
parent4b7d36f640b846f9ff9a5727db9d23f23202c168
Fix building with --as-needed LD flag

When using GNU ld --as-needed option, you need to ensure that the
order of parameters to the linker is formally correct, with libraries
coming after the object files. For this reason, don't use LDFLAGS for
passing the libraries, and make sure that LDLIBS goes at the end of
the line.

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Makefile