aboutsummaryrefslogtreecommitdiff
path: root/utils/Makefile
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2018-10-30 12:17:33 -0400
committerTaylor Holberton <taylorcholberton@gmail.com>2018-10-30 12:17:33 -0400
commit88afbfbb548981e3c2a6fe28380f3cdb661ab8b9 (patch)
tree6b6768faa0db22d04d2ffa8145194e3ab8244b4f /utils/Makefile
parentbfed9859c984b964a2f28dc745a8196b753c17a6 (diff)
Added -fPIC and -pie flags to utility builds
Diffstat (limited to 'utils/Makefile')
-rw-r--r--utils/Makefile3
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