From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8DCDA3858D28; Mon, 18 Oct 2021 04:47:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8DCDA3858D28 From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/100427] canadian compile for mingw-w64 copies the wrong dlls for mingw-w64 multilibs Date: Mon, 18 Oct 2021 04:47:32 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live dot com 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: Mon, 18 Oct 2021 04:47:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100427 --- Comment #7 from cqwrteur --- This is incorrect when we canadian build multilib. unfortunately. I find this is an issue for not just libstdc++, but libaotmic, libssp etc t= oo. This script is clearly just not right. It should only copy DLLs from lib not from lib32. and copy DLLs of 32bit to /lib32 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) library_names_spec=3D'$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds=3D'base_file=3D`basename \${file}`~ dlpath=3D`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=3D$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds=3D'dldll=3D`$SHELL 2>&1 -c '\''. $file; echo \$dlnam= e'\''`~ dlpath=3D$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=3Dyes=