Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Nov 2012 23:30:01 GMT
From:      Jeremy Huddleston Sequoia <jeremyhu@freedesktop.org>
To:        freebsd-multimedia@FreeBSD.org
Subject:   Re: ports/173741: multimedia/dirac fails to compile with clang
Message-ID:  <201211202330.qAKNU1Id038111@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/173741; it has been noted by GNATS.

From: Jeremy Huddleston Sequoia <jeremyhu@freedesktop.org>
To: FreeBSD-gnats-submit@FreeBSD.org,
 freebsd-ports-bugs@FreeBSD.org
Cc:  
Subject: Re: ports/173741: multimedia/dirac fails to compile with clang
Date: Tue, 20 Nov 2012 18:20:00 -0500

 --Apple-Mail=_C5537C25-9561-4E82-BC3A-B0F44F3B995A
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/plain;
 	charset=us-ascii
 
 The problem is coming from this bit in configure.ac which assumes that =
 compilers starting with "cl" are for win32.  This configure.ac patch =
 (and an autoreconf) should fix it up.
 
 
 --Apple-Mail=_C5537C25-9561-4E82-BC3A-B0F44F3B995A
 Content-Disposition: attachment;
 	filename=dirac-clang.patch
 Content-Type: application/octet-stream;
 	name="dirac-clang.patch"
 Content-Transfer-Encoding: 7bit
 
 --- configure.ac.orig	2012-11-20 17:18:12.000000000 -0800
 +++ configure.ac	2012-11-20 17:19:09.000000000 -0800
 @@ -68,6 +68,7 @@ use_msvc=no
  AC_SUBST([LIBFLAGS],[])
  AC_SUBST([LIBEXT],[])
  case "$CXX" in
 +		*clang*) ;;
  		cl*|CL*)
  		CXXFLAGS="-nologo -W1 -EHsc -DWIN32"
  		if test x"$enable_shared" = "xyes"; then
 @@ -208,14 +209,14 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING([--e
  if test x"${enableval}" = x"yes" ; then
  	AC_MSG_RESULT(yes)
  	case "$CXX" in
 -	    g++*)
 +	    *g++*|*clang++*)
  			CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[[0-9]]*//g'`
  			OPT_CFLAGS=""
  			TRY_CFLAGS="-O0"
  			AC_TRY_CXXFLAGS([],[], [$TRY_CFLAGS $CXXFLAGS],[OPT_CFLAGS="$TRY_CFLAGS"])
  			CXXFLAGS="$OPT_CFLAGS $CXXFLAGS -DDIRAC_DEBUG"
  		    ;;
 -	    icc)
 +	    *icc)
  			CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[[0-9]]*//g'`
  			CXXFLAGS="-DDIRAC_DEBUG -g -O0 $CXXFLAGS"
  		    # report only errors and warnings as errors
 
 --Apple-Mail=_C5537C25-9561-4E82-BC3A-B0F44F3B995A
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 
 
 On Nov 20, 2012, at 1:20 PM, freebsd-gnats-submit@FreeBSD.org wrote:
 
 > Thank you very much for your problem report.
 > It has the internal identification `ports/173741'.
 > The individual assigned to look at your
 > report is: freebsd-ports-bugs. 
 > 
 > You can access the state of your problem report at any time
 > via this link:
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=173741
 > 
 >> Category:       ports
 >> Responsible:    freebsd-ports-bugs
 >> Synopsis:       multimedia/dirac fails to compile with clang
 >> Arrival-Date:   Tue Nov 20 18:20:00 UTC 2012
 > 
 
 
 --Apple-Mail=_C5537C25-9561-4E82-BC3A-B0F44F3B995A--



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