diff options
author | Taylor Holberton <taylorcholberton@gmail.com> | 2018-10-30 12:17:33 -0400 |
---|---|---|
committer | Taylor Holberton <taylorcholberton@gmail.com> | 2018-10-30 12:17:33 -0400 |
commit | 88afbfbb548981e3c2a6fe28380f3cdb661ab8b9 (patch) | |
tree | 6b6768faa0db22d04d2ffa8145194e3ab8244b4f | |
parent | bfed9859c984b964a2f28dc745a8196b753c17a6 (diff) |
Added -fPIC and -pie flags to utility builds
-rw-r--r-- | utils/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/Makefile b/utils/Makefile index ad4bc5c..6713850 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -9,8 +9,11 @@ CC = $(CROSS_COMPILE)gcc CFLAGS += -Wall -Wextra -Werror -Wfatal-errors CFLAGS += -I ../include CFLAGS += -L ../src +CFLAGS += -fPIC CFLAGS += -O2 +LDFLAGS += -pie + VPATH = ../src:../include/tinyalsa .PHONY: all |