Skip to content

Commit

Permalink
fix: sysroot build libraries with position independent code (#174)
Browse files Browse the repository at this point in the history
This was affecting mainly the static Fortran linking, which required
-fpic or -fPIC to work.
  • Loading branch information
f0rmiga authored Apr 29, 2024
1 parent 78bc3cd commit 46251ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sysroot/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ args=()
if [[ "${ARCH}" == "aarch64" ]]; then
readonly target="aarch64-linux"
args+=(
--with-pic
--build=x86_64-linux-gnu
--target="${target}"
)
Expand All @@ -39,6 +40,7 @@ if [[ "${ARCH}" == "aarch64" ]]; then
elif [[ "${ARCH}" == "armv7" ]]; then
readonly target="arm-linux-gnueabihf"
args+=(
--with-pic
--build=x86_64-linux-gnu
--target="${target}"
--with-arch=armv7-a
Expand All @@ -58,6 +60,7 @@ elif [[ "${ARCH}" == "armv7" ]]; then
elif [[ "${ARCH}" == "x86_64" ]]; then
readonly target="x86_64-linux"
args+=(
--with-pic
--build=x86_64-linux-gnu
--host="${target}"
--target="${target}"
Expand Down

0 comments on commit 46251ce

Please sign in to comment.