]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
NVMe: Pass linker flags at the end
authorMatias Bjørling <m@bjorling.me>
Mon, 9 Feb 2015 09:31:40 +0000 (10:31 +0100)
committerMatias Bjørling <m@bjorling.me>
Mon, 9 Feb 2015 09:36:25 +0000 (10:36 +0100)
Linker flags must be passed after the object have been compiled. Else
the compiler won't know they should be linked in to the nvme.o object
file.

Makefile

index df03c20f6d33c30cd598745e15911fba84528806..b0a0c6f86e2ac60949afc7db5a842c35c597fbd7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,9 @@ endif
 
 default: $(NVME)
 
+nvme: nvme.c
+       $(CC) $(CFLAGS) nvme.c $(LDFLAGS) -o $(NVME)
+
 doc: $(NVME)
        $(MAKE) -C Documentation