From patchwork Thu Oct 30 11:11:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 405015 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2EF5814007B for ; Thu, 30 Oct 2014 22:11:31 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:in-reply-to:references:date:message-id:mime-version :content-type; q=dns; s=default; b=UxRnFBdfbC4GSvgbTlt6yWWdCNyLS BpqcX8N+FUbrQ3rZe57xbbXBjwCmVJlTpm6coBEvJ8BVAN7E5UzrUcpfPAisf1bB BFcLfJqFBM9joh+ztARf7c68OYLnMMbVGj84K8oIymiiBYtH0lmaFjMkI2cNEsgw QHiyuINLWpR7uU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:in-reply-to:references:date:message-id:mime-version :content-type; s=default; bh=98rjn651Dbky5+l3KFvGty37YAI=; b=fyc 5GuFPqEedGAxJqsp0CUQS1P2vNtfHCBbbDzdZvOWRyyrUqmxU0rlp9X1WVYLB239 kX9e6HdVX85SwOqHTvnXv3SDT+HiPeL2f7hUl0xpDUugCY3O+5Ch7HWB3P4j6tpP VEOD1vBQsa2Y8ZgfaZI5KGiNklNCXbZWE13NS1TM= Received: (qmail 28727 invoked by alias); 30 Oct 2014 11:11:23 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 28709 invoked by uid 89); 30 Oct 2014 11:11:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 Oct 2014 11:11:17 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XjndJ-0000yQ-5o from Thomas_Schwinge@mentor.com for gcc-patches@gcc.gnu.org; Thu, 30 Oct 2014 04:11:13 -0700 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.181.6; Thu, 30 Oct 2014 11:11:11 +0000 From: Thomas Schwinge To: Subject: [gomp4] Re: [PATCH 5/5] add libcc1 In-Reply-To: <8761f1lvf8.fsf@schwinge.name> References: <20141028093506.GE10376@tucnak.redhat.com> <544F7181.4060307@redhat.com> <544F8253.4040906@redhat.com> <20141028122350.GF10376@tucnak.redhat.com> <87y4rydkjf.fsf@kepler.schwinge.homeip.net> <20141030085159.GX10376@tucnak.redhat.com> <8761f1lvf8.fsf@schwinge.name> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Thu, 30 Oct 2014 12:11:08 +0100 Message-ID: <87zjcdke2b.fsf@schwinge.name> MIME-Version: 1.0 Hi! On Thu, 30 Oct 2014 11:10:51 +0100, I wrote: > Build a shared host libiberty also for libcc1's benefit. Backported to gomp-4_0-branch in r216918: commit 595db85c7323b08d29bf344911a7bd709d68685b Author: tschwinge Date: Thu Oct 30 11:09:14 2014 +0000 Build a shared host libiberty also for libcc1's benefit. Backport trunk r216912: * configure.ac (extra_host_libiberty_configure_flags): Add --enable-shared also for libcc1's benefit. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@216918 138bc75d-0d04-0410-961f-82ee72b054a4 --- ChangeLog.gomp | 8 ++++++++ configure | 16 ++++++++++++---- configure.ac | 14 +++++++++++--- 3 files changed, 31 insertions(+), 7 deletions(-) Grüße, Thomas diff --git ChangeLog.gomp ChangeLog.gomp index 10a0ed7..446329e 100644 --- ChangeLog.gomp +++ ChangeLog.gomp @@ -1,3 +1,11 @@ +2014-10-30 Thomas Schwinge + + Backport trunk r216912: + + * configure.ac (extra_host_libiberty_configure_flags): Add + --enable-shared also for libcc1's benefit. + * configure: Regenerate. + 2014-10-17 Julian Brown * gomp-constants.h: New file. diff --git configure configure index 18781f8..96ee349 100755 --- configure +++ configure @@ -642,8 +642,8 @@ CXXFLAGS_FOR_TARGET CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET SYSROOT_CFLAGS_FOR_TARGET -stage1_languages extra_host_libiberty_configure_flags +stage1_languages extra_linker_plugin_flags extra_linker_plugin_configure_flags clooginc @@ -6274,7 +6274,6 @@ if test -d ${srcdir}/gcc; then new_enable_languages=,c, # If LTO is enabled, add the LTO front end. - extra_host_libiberty_configure_flags= if test "$enable_lto" = "yes" ; then case ,${enable_languages}, in *,lto,*) ;; @@ -6282,11 +6281,9 @@ if test -d ${srcdir}/gcc; then esac if test "${build_lto_plugin}" = "yes" ; then configdirs="$configdirs lto-plugin" - extra_host_libiberty_configure_flags=--enable-shared fi fi - missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` potential_languages=,c, @@ -6599,6 +6596,17 @@ then esac fi +# Sometimes we have special requirements for the host libiberty. +extra_host_libiberty_configure_flags= +case " $configdirs " in + *" lto-plugin "* | *" libcc1 "*) + # When these are to be built as shared libraries, the same applies to + # libiberty. + extra_host_libiberty_configure_flags=--enable-shared + ;; +esac + + # Produce a warning message for the subdirs we can't configure. # This isn't especially interesting in the Cygnus tree, but in the individual # FSF releases, it's important to let people know when their machine isn't diff --git configure.ac configure.ac index 20dbcbc..7b24958 100644 --- configure.ac +++ configure.ac @@ -1861,7 +1861,6 @@ if test -d ${srcdir}/gcc; then new_enable_languages=,c, # If LTO is enabled, add the LTO front end. - extra_host_libiberty_configure_flags= if test "$enable_lto" = "yes" ; then case ,${enable_languages}, in *,lto,*) ;; @@ -1869,10 +1868,8 @@ if test -d ${srcdir}/gcc; then esac if test "${build_lto_plugin}" = "yes" ; then configdirs="$configdirs lto-plugin" - extra_host_libiberty_configure_flags=--enable-shared fi fi - AC_SUBST(extra_host_libiberty_configure_flags) missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` potential_languages=,c, @@ -2186,6 +2183,17 @@ then esac fi +# Sometimes we have special requirements for the host libiberty. +extra_host_libiberty_configure_flags= +case " $configdirs " in + *" lto-plugin "* | *" libcc1 "*) + # When these are to be built as shared libraries, the same applies to + # libiberty. + extra_host_libiberty_configure_flags=--enable-shared + ;; +esac +AC_SUBST(extra_host_libiberty_configure_flags) + # Produce a warning message for the subdirs we can't configure. # This isn't especially interesting in the Cygnus tree, but in the individual # FSF releases, it's important to let people know when their machine isn't