package/empty: Respect LDFLAGS, fix link order

Fixes
http://autobuild.buildroot.net/results/50f/50fedb54cf005d1177d85c5a34fd10a1c354ba5b/
http://autobuild.buildroot.net/results/9fc/9fce0825772e99de3c6808b729641147385413aa/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Bernd Kuhls 2014-08-10 16:57:52 +02:00 committed by Thomas Petazzoni
parent 1b624c3964
commit d3ab60a1ee

View File

@ -0,0 +1,22 @@
downloaded from
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-misc/empty/files/empty-respect-LDFLAGS.patch?view=markup
Reported on the Gentoo bug tracker
https://bugs.gentoo.org/show_bug.cgi?id=429664
and reported upstream
https://sourceforge.net/tracker/?func=detail&aid=3554236&group_id=136798&atid=736886
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
--- empty-0.6.18b/Makefile
+++ empty-0.6.18b/Makefile
@@ -16,7 +16,7 @@
PREFIX = /usr/local
all:
- ${CC} ${CFLAGS} -Wall ${LIBS} -o empty empty.c
+ ${CC} ${CFLAGS} ${LDFLAGS} empty.c ${LIBS} -o empty
FreeBSD: all
NetBSD: all