Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Feb 2012 10:01:19 +0800 (CST)
From:      Jyun-Yan You <jyyou@cs.nctu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        michael.grunewald@laposte.net
Subject:   ports/165159: [PATCH] lang/ocaml: fix build error for systems that use clang
Message-ID:  <201202150201.q1F21JjQ079335@csduty.cs.nctu.edu.tw>
Resent-Message-ID: <201202150210.q1F2A6T8016530@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         165159
>Category:       ports
>Synopsis:       [PATCH] lang/ocaml: fix build error for systems that use clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 15 02:10:05 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jyun-Yan You
>Release:        FreeBSD 8.2-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD csduty.cs.nctu.edu.tw 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011
>Description:
add -cc option for systems that use clang as default compiler

Port maintainer (michael.grunewald@laposte.net) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- ocaml-3.12.1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/lang/ocaml/Makefile /amd/gcs/98/9855518/src/ports/lang/ocaml/Makefile
--- /usr/ports/lang/ocaml/Makefile	2011-12-30 04:33:26.000000000 +0800
+++ /amd/gcs/98/9855518/src/ports/lang/ocaml/Makefile	2012-02-15 09:52:16.156900000 +0800
@@ -26,7 +26,7 @@
 STRIP=
 MAKE_JOBS_UNSAFE=	yes
 
-CONFIGURE_ARGS=	-prefix ${PREFIX}
+CONFIGURE_ARGS=	-prefix ${PREFIX} -cc ${CC}
 OPTIONS=	X11	"Build with X11 support" on \
 		TK	"Build LablTk library (requires X11 support)" on \
 		THREADS	"Build with Posix threads support" on \
--- ocaml-3.12.1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202150201.q1F21JjQ079335>