summarylogtreecommitdiffstats
path: root/01-fix-ctrtool-cxxflags.patch
blob: fe4c75d051e646af322d779c432522175623f899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/ctrtool/Makefile b/ctrtool/Makefile
index 7a534c9..245eeb4 100644
--- a/ctrtool/Makefile
+++ b/ctrtool/Makefile
@@ -4,7 +4,7 @@ OBJS = $(foreach dir,$(SRC_DIR),$(subst .c,.o,$(wildcard $(dir)/*.c))) $(foreach
 
 # Compiler Settings
 OUTPUT = ctrtool
-CXXFLAGS = -I.
-CFLAGS = -O2 -Wall -Wno-unused-variable  -Wno-unused-result -I. -std=c11
+CXXFLAGS = -O2 -Wall -I. -fPIC
+CFLAGS = -O2 -Wall -Wno-unused-variable  -Wno-unused-result -I. -std=c11 -fPIC
 CC = gcc
 CXX = g++