Skip to content

Commit

Permalink
[Graphviz] Do not build with -ffast-math
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Jan 25, 2020
1 parent a49ffd3 commit 22a8c3d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
9 changes: 6 additions & 3 deletions G/Graphviz/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ if [[ "${target}" == *-mingw* ]]; then
# Remove wrong libtool archives
rm ${prefix}/lib/libharfbuzz*.la
# Rebuild the configure script
autoreconf -fiv
fi
# Do not build with -ffast-math
atomic_patch -p1 ../patches/1001-no-ffast-math.patch
# Rebuild the configure script
autoreconf -fiv
# Apply patch to build a native `mkdefs` utility that can be run within the
# build environment.
atomic_patch -p1 ../patches/0001-gvpr-build-native-mkdefs.patch
Expand Down
20 changes: 20 additions & 0 deletions G/Graphviz/bundled/patches/1001-no-ffast-math.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- a/configure.ac
+++ b/configure.ac
@@ -379,7 +379,7 @@
LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names"
;;
*-freebsd* )
- CFLAGS="${CFLAGS} -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math"
+ CFLAGS="${CFLAGS} -Wstrict-prototypes -Wpointer-arith -Wall"
;;
* )
# -Wno-unused-parameter only needed for bug in gcc3
@@ -393,7 +393,7 @@
;;
esac
fi
- CFLAGS="${CFLAGS} -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math"
+ CFLAGS="${CFLAGS} -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall"
;;
esac
;;

0 comments on commit 22a8c3d

Please sign in to comment.