Skip to content

Commit 8215b02

Browse files
authored
Apply #738 to make_defs.mk of RISC-V subconfigs. (#740)
Details: - PR #738 -- which moved -fPIC flag insertion responsibilities from common.mk to the subconfigs' individual make_defs.mk files -- was merged shortly before the introduction of new RISC-V subconfigs in #693. This commit brings those RISC-V subconfigs up to date with the new -fPIC conventions.
1 parent 6b38c5a commit 8215b02

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

config/rv32i/make_defs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ CPPROCFLAGS := -DRISCV_SIZE=32
4949
# Atomic instructions must be enabled either via hardware
5050
# (-march=rv32ia) or by linking against libatomic
5151
CMISCFLAGS := -march=$(shell $(CC) -E frame/base/bli_riscv_detect_arch.h | grep '^[^\#]') -mabi=ilp32
52-
CPICFLAGS :=
52+
CPICFLAGS := -fPIC
5353
CWARNFLAGS := -Wall -Wno-unused-function -Wfatal-errors
5454

5555
# In case the A extension is not available

config/rv32iv/make_defs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ CPPROCFLAGS := -DRISCV_SIZE=32
4949
# Atomic instructions must be enabled either via hardware
5050
# (-march=rv32iav) or by linking against libatomic
5151
CMISCFLAGS := -march=$(shell $(CC) -DFORCE_RISCV_VECTOR -E frame/base/bli_riscv_detect_arch.h | grep '^[^\#]') -mabi=ilp32d
52-
CPICFLAGS :=
52+
CPICFLAGS := -fPIC
5353
CWARNFLAGS := -Wall -Wno-unused-function -Wfatal-errors
5454

5555
# In case the A extension is not available

config/rv64i/make_defs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ THIS_CONFIG := rv64i
4747
# may specify additional flags here as needed.
4848
CPPROCFLAGS := -DRISCV_SIZE=64
4949
CMISCFLAGS := -march=$(shell $(CC) -E frame/base/bli_riscv_detect_arch.h | grep '^[^\#]') -mabi=lp64
50-
CPICFLAGS :=
50+
CPICFLAGS := -fPIC
5151
CWARNFLAGS := -Wall -Wno-unused-function -Wfatal-errors
5252

5353
# In case the A extension is not available

config/rv64iv/make_defs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ THIS_CONFIG := rv64iv
4747
# may specify additional flags here as needed.
4848
CPPROCFLAGS := -DRISCV_SIZE=64
4949
CMISCFLAGS := -march=$(shell $(CC) -DFORCE_RISCV_VECTOR -E frame/base/bli_riscv_detect_arch.h | grep '^[^\#]') -mabi=lp64d
50-
CPICFLAGS :=
50+
CPICFLAGS := -fPIC
5151
CWARNFLAGS := -Wall -Wno-unused-function -Wfatal-errors
5252

5353
# In case the A extension is not available

0 commit comments

Comments
 (0)