From owner-svn-ports-head@FreeBSD.ORG Tue Feb 19 16:24: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 2852A6B5; Tue, 19 Feb 2013 16:24:17 +0000 (UTC) (envelope-from kwm@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 1A2711B3; Tue, 19 Feb 2013 16:24:17 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1JGOGp8072434; Tue, 19 Feb 2013 16:24:16 GMT (envelope-from kwm@svn.freebsd.org) Received: (from kwm@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1JGOGFf072433; Tue, 19 Feb 2013 16:24:16 GMT (envelope-from kwm@svn.freebsd.org) Message-Id: <201302191624.r1JGOGFf072433@svn.freebsd.org> From: Koop Mast Date: Tue, 19 Feb 2013 16:24:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r312583 - head/Mk 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, 19 Feb 2013 16:24:17 -0000 Author: kwm Date: Tue Feb 19 16:24:16 2013 New Revision: 312583 URL: http://svnweb.freebsd.org/changeset/ports/312583 Log: Add workaround for when clang is used as a compiler, due to a tail calls optimization bug in llvm when PIC mode is used. This bug was reproduced with 3.2 and 3.1 on i386. And prevents modules that where dlopen()'d by the xorg-server, to dlopen() other shared modules by themself. This is known to happen with the vmware and vesa drivers others might be affected. More details: http://llvm.org/bugs/show_bug.cgi?id=15086 Submitted by: dim@ Modified: head/Mk/bsd.xorg.mk Modified: head/Mk/bsd.xorg.mk ============================================================================== --- head/Mk/bsd.xorg.mk Tue Feb 19 16:18:01 2013 (r312582) +++ head/Mk/bsd.xorg.mk Tue Feb 19 16:24:16 2013 (r312583) @@ -49,6 +49,11 @@ USE_GNOME+= pkgconfig . if ${XORG_CAT} == "driver" USE_GNOME+= pkgconfig USE_XORG+= xorg-server xproto randrproto xi +# work around a llvm bug on i386, llvm bug #15806 +# reproduced with clang 3.2 (current release) and 3.1 +. if ${ARCH} == i386 +CFLAGS+= -fno-optimize-sibling-calls +. endif CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4x DRIVER_MAN_DIR='$$(mandir)/man4' . if ${PORTNAME:M*input*}x != x USE_XORG+= inputproto renderproto