aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2016-12-27 17:59:18 +0800
committerlwhsu <lwhsu@FreeBSD.org>2016-12-27 17:59:18 +0800
commite6b56abb4168723366b7bed3fd294dbb753f9118 (patch)
treed649987e99d407f424a1847aa06ea98758a0c4d3 /lang
parent501656299f5b121bb78f7fef069b5b6e1741d4ab (diff)
downloadfreebsd-ports-gnome-e6b56abb4168723366b7bed3fd294dbb753f9118.tar.gz
freebsd-ports-gnome-e6b56abb4168723366b7bed3fd294dbb753f9118.tar.zst
freebsd-ports-gnome-e6b56abb4168723366b7bed3fd294dbb753f9118.zip
- Respect CC, CXX, FC
PR: 215565 Submitted by: Yunchih Chen <yunchih.cat@gmail.com> Approved by: Iblis Lin <iblis@hs.ntnu.edu.tw> (maintainer)
Diffstat (limited to 'lang')
-rw-r--r--lang/julia/files/patch-Make.inc20
1 files changed, 19 insertions, 1 deletions
diff --git a/lang/julia/files/patch-Make.inc b/lang/julia/files/patch-Make.inc
index 5390c73c479d..965b62a3abb1 100644
--- a/lang/julia/files/patch-Make.inc
+++ b/lang/julia/files/patch-Make.inc
@@ -31,7 +31,25 @@
build_man1dir := $(build_mandir)/man1
build_includedir := $(build_prefix)/include
build_sysconfdir := $(build_prefix)/etc
-@@ -400,7 +395,7 @@ JCFLAGS := -pipe $(fPIC) -fno-strict-ali
+@@ -340,7 +335,7 @@ endif
+ ifeq ($(USEIFC), 1)
+ FC := ifort
+ else
+-FC := $(CROSS_COMPILE)gfortran
++FC ?= $(CROSS_COMPILE)gfortran
+ endif
+
+ STDLIBCPP_FLAG :=
+@@ -393,14 +388,14 @@ SHIPFLAGS := -O3 -ggdb2 -falign-function
+ endif
+
+ ifeq ($(USECLANG),1)
+-CC := $(CROSS_COMPILE)clang
+-CXX := $(CROSS_COMPILE)clang++
++CC ?= $(CROSS_COMPILE)clang
++CXX ?= $(CROSS_COMPILE)clang++
+ JCFLAGS := -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
+ # AArch64 needs this flag to generate the .eh_frame used by libunwind
JCPPFLAGS := -fasynchronous-unwind-tables
JCXXFLAGS := -pipe $(fPIC) -fno-rtti -pedantic
DEBUGFLAGS := -O0 -g -DJL_DEBUG_BUILD -fstack-protector-all