Skip to content

Commit

Permalink
try flags from default compiler activation
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Oct 12, 2024
1 parent 88c497c commit 95de088
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions recipes/x13as/build.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
#!/bin/bash
set -ex

if [[ "$target_platform" == linux-* ]]; then
# where libquadmath is found in our setup
export LDFLAGS="-L$CONDA_BUILD_SYSROOT/../lib"
# needs to explicitly link glibc
export LDFLAGS="-lc -L$CONDA_BUILD_SYSROOT/lib64"
else
export LDFLAGS="-framework CoreFoundation"
fi
# need to link to libgfortran
export LDFLAGS="$LDFLAGS -lgfortran"

cd ascii
# the makefiles are only makefile _templates_, but basically functional;
# to avoid use of perl for mkmf, just execute the template and then
# do the installation step manually
make FC=$FC LINKER=$BUILD_PREFIX/bin/ld LDFLAGS="$LDFLAGS" install -f makefile.gf
make FC="$FC $FFLAGS" LINKER=$BUILD_PREFIX/bin/ld LDFLAGS="$LDFLAGS" install -f makefile.gf
cp ./x13as_ascii $PREFIX/bin

cd ../html
make FC=$FC LINKER=$BUILD_PREFIX/bin/ld LDFLAGS="$LDFLAGS" install -f makefile.gf
make FC="$FC $FFLAGS" LINKER=$BUILD_PREFIX/bin/ld LDFLAGS="$LDFLAGS" install -f makefile.gf
cp ./x13as_html $PREFIX/bin

0 comments on commit 95de088

Please sign in to comment.