From 8300344f70ca1bc81c575488573853c1f0f86941 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Wed, 15 Mar 2017 12:58:50 +0000 Subject: [PATCH] readenergy: fixing the Makefile CFLAGS in the makefile were being specified incorrectly. - the single quotes for forcing all options to be passed as a single token by the shell. - Specifying -static and -lc via -Wl is not needed. --- src/readenergy/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/readenergy/Makefile b/src/readenergy/Makefile index 340dd7b..dd5cae2 100644 --- a/src/readenergy/Makefile +++ b/src/readenergy/Makefile @@ -4,7 +4,7 @@ # CROSS_COMPILE?=aarch64-linux-gnu- CC=$(CROSS_COMPILE)gcc -CFLAGS='-Wl,-static -Wl,-lc' +CFLAGS=-static -lc readenergy: readenergy.c $(CC) $(CFLAGS) readenergy.c -o readenergy