aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2021-07-28 17:04:21 -0700
committerAndrew Waterman <andrew@sifive.com>2021-07-28 17:04:21 -0700
commitc8e510ec65e401832a1a3d8493a20b6b6705f957 (patch)
tree96730249ac0993bc3cb03b5a421d9924dcf92280 /Makefile.in
parent74b49a97fe4b381ad0e81b1e3240153a98f587af (diff)
downloadriscv-isa-sim-c8e510ec65e401832a1a3d8493a20b6b6705f957.zip
riscv-isa-sim-c8e510ec65e401832a1a3d8493a20b6b6705f957.tar.gz
riscv-isa-sim-c8e510ec65e401832a1a3d8493a20b6b6705f957.tar.bz2
Significantly speed up compilation with GCC
Precompiled headers were broken because they weren't compiled with the same -fPIC setting as the rest of the code. Fix by just making everything use -fPIC.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 64e5e23..deebc5b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -92,7 +92,7 @@ VPATH := $(addprefix $(src_dir)/, $(sprojs_enabled))
# These all appear on the command line, from lowest precedence to
# highest.
-default-CFLAGS := -DPREFIX=\"$(prefix)\" -Wall -Wno-unused -g -O2
+default-CFLAGS := -DPREFIX=\"$(prefix)\" -Wall -Wno-unused -g -O2 -fPIC
default-CXXFLAGS := $(default-CFLAGS) -std=c++11
mcppbs-CPPFLAGS := @CPPFLAGS@