freebsd-ports/lang/nim/files/elfv1-patch-build.sh
Piotr Kubaj f3ea85ac57 lang/nim: Remove BROKEN for powerpc64
Fix build on powerpc64 elfv1 and elfv2.

PR:             241974
Submitted by:   hamiltcl@verizon.net
Approved by:    ports@nicandneal.net (maintainer), tcberner (mentor)
Differential Revision:  https://reviews.freebsd.org/D22568
2019-11-27 19:55:14 +00:00

15 lines
278 B
Bash

--- build.sh.orig 2019-10-24 12:53:39 UTC
+++ build.sh
@@ -84,7 +84,11 @@
;;
*freebsd* )
myos="freebsd"
- CC="clang"
+ if [ "$ucpu" = "powerpc" ] ; then
+ CC="gcc"
+ else
+ CC="clang"
+ fi
LINK_FLAGS="$LINK_FLAGS -lm"
;;
*openbsd* )