From 2f77f9925a6a0b6f35b7863965c67de566992fcd Mon Sep 17 00:00:00 2001
From: hpotaraju <42624768+hpotaraju@users.noreply.github.com>
Date: Wed, 22 Aug 2018 15:52:31 -0700
Subject: [PATCH] Reorder gcc parameters

Linker unable to resolve libusb functions because of parameter ordering. Reordering this way will help create the undefined symbols first, which will subsequently resolve when seeing libusb-1.0.a
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 26e5465..fe8b793 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ CFLAGS = -g -O2 -Wall -lusb-1.0 -I/usr/include/libusb-1.0
 all:	pcsensor
 
 pcsensor:	pcsensor.c
-	${CC} ${CFLAGS} -DUNIT_TEST -o $@ $^
+	${CC} $^ ${CFLAGS} -DUNIT_TEST -o $@
 
 clean:		
 	rm -f pcsensor *.o