From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 822693858D28; Thu, 30 Dec 2021 11:34:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 822693858D28 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/103866] AM_PROG_LIBTOOL not compatible with GCC_NO_EXECUTABLES Date: Thu, 30 Dec 2021 11:34:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2021 11:34:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103866 --- Comment #2 from Andrew Pinski --- (In reply to Jonathan Wakely from comment #1) > libstdc++-v3/configure.ac has: >=20 > # Libtool setup. > if test "x${with_newlib}" !=3D "xyes" && test "x${with_avrlibc}" !=3D "xy= es"; > then > AC_LIBTOOL_DLOPEN > fi > AM_PROG_LIBTOOL > ACX_LT_HOST_FLAGS > AC_SUBST(enable_shared) > AC_SUBST(enable_static) >=20 >=20 > Since I actively avoid understanding what libtool actually does I have no > idea if/when we can make that AM_PROG_LIBTOOL conditional. Libstdc++ does= n't > use dlopen, so maybe we can just add --disable-dlopen. Or maybe > --disable-shared should imply --disable-dlopen. I think even after that, cross compile will still fail because GLIBCXX_CROSSCONFIG will do this: AC_MSG_ERROR([No support for this host/target combination.]) Which means that might need to be patched checking hosted_libstdcxx before printing out that error message. Or the person could do --with-newlib and bypass GLIBCXX_CROSSCONFIG .=