Skip to content

Commit f31b02d

Browse files
committed
fix: sysroot build libraries with position independent code
This was affecting mainly the static Fortran linking, which required -fpic or -fPIC to work.
1 parent 78bc3cd commit f31b02d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sysroot/configure.sh

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ args=()
2424
if [[ "${ARCH}" == "aarch64" ]]; then
2525
readonly target="aarch64-linux"
2626
args+=(
27+
--with-pic
2728
--build=x86_64-linux-gnu
2829
--target="${target}"
2930
)
@@ -39,6 +40,7 @@ if [[ "${ARCH}" == "aarch64" ]]; then
3940
elif [[ "${ARCH}" == "armv7" ]]; then
4041
readonly target="arm-linux-gnueabihf"
4142
args+=(
43+
--with-pic
4244
--build=x86_64-linux-gnu
4345
--target="${target}"
4446
--with-arch=armv7-a
@@ -58,6 +60,7 @@ elif [[ "${ARCH}" == "armv7" ]]; then
5860
elif [[ "${ARCH}" == "x86_64" ]]; then
5961
readonly target="x86_64-linux"
6062
args+=(
63+
--with-pic
6164
--build=x86_64-linux-gnu
6265
--host="${target}"
6366
--target="${target}"

0 commit comments

Comments
 (0)