Skip to content

Commit

Permalink
Add -ld_classic linker flag for Darwin-arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed May 9, 2024
1 parent 3e3454a commit 9843133
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/Darwin-gnu-arm64.psmp
Expand Up @@ -262,7 +262,7 @@ FCFLAGS += -ffree-line-length-none
FCFLAGS += -fno-omit-frame-pointer
FCFLAGS += -std=f2008

LDFLAGS += $(FCFLAGS)
LDFLAGS += $(FCFLAGS) -ld_classic

LIBS += -lz -ldl -lstdc++

Expand Down
4 changes: 4 additions & 0 deletions tools/toolchain/scripts/stage7/install_libvdwxc.sh
Expand Up @@ -46,6 +46,10 @@ case "$with_libvdwxc" in
tar -xzf libvdwxc-${libvdwxc_ver}.tar.gz
cd libvdwxc-${libvdwxc_ver}

if [ "${OPENBLAS_ARCH}" = "arm64" ]; then
LDFLAGS="${LDFLAGS} -ld_classic"
fi

if [ "${MPI_MODE}" = "no" ]; then
# compile libvdwxc without mpi support since fftw (or mkl) do not have mpi support activated
./configure \
Expand Down

0 comments on commit 9843133

Please sign in to comment.