From owner-svn-ports-head@FreeBSD.ORG Tue Jun 11 21:44:17 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B8BBF275; Tue, 11 Jun 2013 21:44:17 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 926B61EDD; Tue, 11 Jun 2013 21:44:17 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5BLiGaI006709; Tue, 11 Jun 2013 21:44:16 GMT (envelope-from rakuco@svn.freebsd.org) Received: (from rakuco@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5BLiGYE006707; Tue, 11 Jun 2013 21:44:16 GMT (envelope-from rakuco@svn.freebsd.org) Message-Id: <201306112144.r5BLiGYE006707@svn.freebsd.org> From: Raphael Kubo da Costa Date: Tue, 11 Jun 2013 21:44:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r320649 - in head/textproc/hunspell: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jun 2013 21:44:17 -0000 Author: rakuco Date: Tue Jun 11 21:44:16 2013 New Revision: 320649 URL: http://svnweb.freebsd.org/changeset/ports/320649 Log: Respect CXXFLAGS when linking. hunspell's configure script seems to have been generated with a very old version of libtool. Specifically, it does not uses CFLAGS instead of CXXFLAGS when performing some tests related to the C++ compiler. This ends up making it add '-lstdc++' to the linker's command line even if one sets CXXFLAGS to -stdlib=libc++. The attached patch fixes the problem by "backporting" the appropriate libtool.m4 change to the configure script. PR: ports/178696 Approved by: maintainer timeout (office@, 28 days) Added: head/textproc/hunspell/files/patch-configure (contents, props changed) Modified: head/textproc/hunspell/Makefile Modified: head/textproc/hunspell/Makefile ============================================================================== --- head/textproc/hunspell/Makefile Tue Jun 11 21:36:24 2013 (r320648) +++ head/textproc/hunspell/Makefile Tue Jun 11 21:44:16 2013 (r320649) @@ -3,7 +3,7 @@ PORTNAME= hunspell PORTVERSION= 1.3.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= textproc MASTER_SITES= SF/${PORTNAME}/Hunspell/${PORTVERSION} DIST_SUBDIR= ${PORTNAME} Added: head/textproc/hunspell/files/patch-configure ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/hunspell/files/patch-configure Tue Jun 11 21:44:16 2013 (r320649) @@ -0,0 +1,26 @@ +--- configure.orig 2013-05-17 01:18:45.000000000 +0300 ++++ configure 2013-05-17 01:26:35.000000000 +0300 +@@ -11880,6 +11880,7 @@ + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC ++ lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX +@@ -11897,6 +11898,7 @@ + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} ++ CFLAGS=$CXXFLAGS + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do +@@ -14618,6 +14620,7 @@ + fi # test -n "$compiler" + + CC=$lt_save_CC ++ CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC