Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Sep 2011 00:08:37 +0400
From:      h h <aakuusta@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/160492: [patch] lang/ocaml: respect CC
Message-ID:  <86sjoada62.fsf@gmail.com>
Resent-Message-ID: <201109052010.p85KA10P067568@freefall.freebsd.org>

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

>Number:         160492
>Category:       ports
>Synopsis:       [patch] lang/ocaml: respect CC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 05 20:10:01 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     h h
>Release:        FreeBSD 9.0-BETA2 r225402M amd64
>Organization:
>Environment:
$ export PATH=~/.bin:$PATH
$ for cc in CC cc c++ gcc g++; do ln -s /usr/bin/false ~/.bin/${cc}; done
>Description:
The port tries to use `gcc' unless `-cc' option is specified.
When `gcc' is not in PATH it unconditionally falls back to `cc',
without even testing whether the latter command is also in PATH.
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/ocaml-3.12.0_1.log
>Fix:
--- a.diff begins here ---
Index: lang/ocaml/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/ocaml/Makefile,v
retrieving revision 1.71
diff -u -p -r1.71 Makefile
--- lang/ocaml/Makefile	4 Apr 2011 02:29:25 -0000	1.71
+++ lang/ocaml/Makefile	5 Sep 2011 19:49:17 -0000
@@ -27,7 +27,7 @@ ALL_TARGET=	world.opt
 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 \
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



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