From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Archive: List-Post: List-Help: Sender: gcc-patches-owner@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 11:25:00 -0000 Message-ID: <87zjcdke2b.fsf@schwinge.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-SW-Source: 2014-10/txt/msg03195.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 4351 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. =20=20=20=20 Backport trunk r216912: =20=20=20=20 * configure.ac (extra_host_libiberty_configure_flags): Add --enable-shared also for libcc1's benefit. * configure: Regenerate. =20=20=20=20 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@2169= 18 138bc75d-0d04-0410-961f-82ee72b054a4 --- ChangeLog.gomp | 8 ++++++++ configure | 16 ++++++++++++---- configure.ac | 14 +++++++++++--- 3 files changed, 31 insertions(+), 7 deletions(-) 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 =20 * 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=3D,c, =20 # If LTO is enabled, add the LTO front end. - extra_host_libiberty_configure_flags=3D if test "$enable_lto" =3D "yes" ; then case ,${enable_languages}, in *,lto,*) ;; @@ -6282,11 +6281,9 @@ if test -d ${srcdir}/gcc; then esac if test "${build_lto_plugin}" =3D "yes" ; then configdirs=3D"$configdirs lto-plugin" - extra_host_libiberty_configure_flags=3D--enable-shared fi fi =20 - missing_languages=3D`echo ",$enable_languages," | sed -e s/,all,/,/ -e s= /,c,/,/ ` potential_languages=3D,c, =20 @@ -6599,6 +6596,17 @@ then esac fi =20 +# Sometimes we have special requirements for the host libiberty. +extra_host_libiberty_configure_flags=3D +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=3D--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 individ= ual # 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=3D,c, =20 # If LTO is enabled, add the LTO front end. - extra_host_libiberty_configure_flags=3D if test "$enable_lto" =3D "yes" ; then case ,${enable_languages}, in *,lto,*) ;; @@ -1869,10 +1868,8 @@ if test -d ${srcdir}/gcc; then esac if test "${build_lto_plugin}" =3D "yes" ; then configdirs=3D"$configdirs lto-plugin" - extra_host_libiberty_configure_flags=3D--enable-shared fi fi - AC_SUBST(extra_host_libiberty_configure_flags) =20 missing_languages=3D`echo ",$enable_languages," | sed -e s/,all,/,/ -e s= /,c,/,/ ` potential_languages=3D,c, @@ -2186,6 +2183,17 @@ then esac fi =20 +# Sometimes we have special requirements for the host libiberty. +extra_host_libiberty_configure_flags=3D +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=3D--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 individ= ual # FSF releases, it's important to let people know when their machine isn't Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 472 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUUhzMAAoJEPoxNhtoi6COyzgIANDX6IYHPbufELpkkAPHZm2y 66RzEOZlramk6D+HH4bRcShJLlfeWLKuhVO3y7rvy1igizyP+N5KdC8Aet4Pxij3 bFjKUfzNhdvPYluKM1e6a9uPASi8tQpwtLpYzmqyT5E+VPngbgppX1jl72bwiUze b+bk+r3y0jygJ6TG8kYdQiw+UD4H3CF5LCXpsUXwYeAqgb2kVyym+nz2CPNREpxk 8nBqK7BReEFlYPOEIMkTPiP0rIfKDFtR75jnuMX0lGSKdJ5hXMviTvgx0BphEkCW mAJNDfsOlfAVZerHW7YCyDWlgH2PI+yz9M41+3n+i9egWsJmYxwjd0kl/saqHDQ= =B7Om -----END PGP SIGNATURE----- --=-=-=--