-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try flags from default compiler activation
- Loading branch information
1 parent
88c497c
commit 95de088
Showing
1 changed file
with
2 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |