ports/math/cadical/files/patch-configure
Piotr Kubaj ef90c63c4a math/cadical: fix build on GCC architectures
Use | instead of , in the sed command to workaround for -Wl,rpath in CXXFLAGS.

MFH:		2020Q3 (fix build blanket)
2020-08-17 23:55:03 +00:00

20 lines
464 B
Text

--- configure.orig 2019-07-12 20:22:02 UTC
+++ configure
@@ -154,7 +154,7 @@ do
CXXFLAGS="`expr \"$1\" : 'CXXFLAGS=\(.*\)'`"
;;
- *) die "invalid option '$1' (try '-h')";;
+ *) ;;
esac
shift
@@ -396,7 +396,7 @@ sed \
-e "2c\\
# This 'makefile' is generated from '../makefile.in'." \
-e "s,@CXX@,$CXX," \
--e "s,@CXXFLAGS@,$CXXFLAGS," \
+-e "s|@CXXFLAGS@|$CXXFLAGS|" \
-e "s,@MAKEFLAGS@,$MAKEFLAGS," \
../makefile.in > makefile