1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

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.
This commit is contained in:
Sergei Trofimov 2017-03-15 12:58:50 +00:00
parent 32a975be74
commit 8300344f70

View File

@ -4,7 +4,7 @@
# #
CROSS_COMPILE?=aarch64-linux-gnu- CROSS_COMPILE?=aarch64-linux-gnu-
CC=$(CROSS_COMPILE)gcc CC=$(CROSS_COMPILE)gcc
CFLAGS='-Wl,-static -Wl,-lc' CFLAGS=-static -lc
readenergy: readenergy.c readenergy: readenergy.c
$(CC) $(CFLAGS) readenergy.c -o readenergy $(CC) $(CFLAGS) readenergy.c -o readenergy