1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-20 20:20:30 -04:00
ports/lang/ghc/files/patch-configure.ac
Gleb Popov 9b949e5d4f lang/ghc: Update to 8.4.4 and factor out common port code into bsd.ghc.mk in preparation for adding a port for previous version.
ARM testing by Mikael Urankar <mikael.urankar@gmail.com>.

Submitted by:	Viktor Dukhovni <ietf-dane@dukhovni.org> (some patches)
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D17866
2018-11-18 15:30:45 +00:00

12 lines
485 B
Text

--- configure.ac.orig 2018-04-17 19:30:22 UTC
+++ configure.ac
@@ -447,6 +447,9 @@ XCODE_VERSION()
dnl ** Building a cross compiler?
dnl --------------------------------------------------------------
CrossCompiling=NO
+
+build=`echo $build | sed -e 's/amd64-/x86_64-/g; s/armv[[67]]-/arm-/g; s/-freebsd.*$/-freebsd/g'`
+
# If 'host' and 'target' differ, then this means we are building a cross-compiler.
if test "$TargetPlatform" != "$HostPlatform" ; then
CrossCompiling=YES