* [PATCH 1/3] testusb: fix a makefile bug in tools/usb
@ 2012-05-11 11:00 Du, ChangbinX
2012-05-11 22:10 ` gregkh
0 siblings, 1 reply; 2+ messages in thread
From: Du, ChangbinX @ 2012-05-11 11:00 UTC (permalink / raw)
To: gregkh, mina86, Fleming, Matt, balbi, hpa; +Cc: linux-kernel, linux-usb
For gcc, link options must behind of compiling options, else it could lead to "undefined reference ..." error since gcc cannot find specific library.
Signed-off-by: Du Changbin <changbinx.du@intel.com>
---
tools/usb/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/usb/Makefile b/tools/usb/Makefile index 396d6c4..acf2165 100644
--- a/tools/usb/Makefile
+++ b/tools/usb/Makefile
@@ -3,11 +3,12 @@
CC = $(CROSS_COMPILE)gcc
PTHREAD_LIBS = -lpthread
WARNINGS = -Wall -Wextra
-CFLAGS = $(WARNINGS) -g $(PTHREAD_LIBS) -I../include
+CFLAGS = $(WARNINGS) -g -I../include
+LDFLAGS = $(PTHREAD_LIBS)
all: testusb ffs-test
%: %.c
- $(CC) $(CFLAGS) -o $@ $^
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
clean:
$(RM) testusb ffs-test
--
1.7.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/3] testusb: fix a makefile bug in tools/usb
2012-05-11 11:00 [PATCH 1/3] testusb: fix a makefile bug in tools/usb Du, ChangbinX
@ 2012-05-11 22:10 ` gregkh
0 siblings, 0 replies; 2+ messages in thread
From: gregkh @ 2012-05-11 22:10 UTC (permalink / raw)
To: Du, ChangbinX; +Cc: mina86, Fleming, Matt, balbi, hpa, linux-kernel, linux-usb
On Fri, May 11, 2012 at 11:00:01AM +0000, Du, ChangbinX wrote:
> For gcc, link options must behind of compiling options, else it could lead to "undefined reference ..." error since gcc cannot find specific library.
How is this working today? What version of gcc causes this change to be
needed? What about clang, does this also work there?
And please, wrap your changelog comments at column 72.
Care to resend after providing this information?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-11 22:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-11 11:00 [PATCH 1/3] testusb: fix a makefile bug in tools/usb Du, ChangbinX
2012-05-11 22:10 ` gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®