From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111859 invoked by alias); 24 Apr 2015 06:16:31 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 111846 invoked by uid 89); 24 Apr 2015 06:16:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout20.012.net.il Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 24 Apr 2015 06:16:28 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NNA00M00RTVAF00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Fri, 24 Apr 2015 09:16:25 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNA00MTXS3C7950@a-mtaout20.012.net.il>; Fri, 24 Apr 2015 09:16:25 +0300 (IDT) Date: Fri, 24 Apr 2015 06:16:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 4/4] compile: Add 'set compile-gcc' In-reply-to: <20150423210916.GA8816@host1.jankratochvil.net> To: Jan Kratochvil Cc: gdb-patches@sourceware.org, pmuldoon@redhat.com Reply-to: Eli Zaretskii Message-id: <83h9s6yrsz.fsf@gnu.org> References: <20150421213635.14147.15653.stgit@host1.jankratochvil.net> <20150421213657.14147.60506.stgit@host1.jankratochvil.net> <83ioco4oid.fsf@gnu.org> <20150423210916.GA8816@host1.jankratochvil.net> X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00924.txt.bz2 > Date: Thu, 23 Apr 2015 23:09:16 +0200 > From: Jan Kratochvil > Cc: gdb-patches@sourceware.org, pmuldoon@redhat.com > > > > +Besides the compiler driver @value{GDBN} needs also shared library > > > +@file{libcc1.so}. It is searched in default shared library search path > > > +(overridable with usual environment variable @code{LD_LIBRARY_PATH}), > > > +unrelated to @code{PATH} or @code{set compile-gcc} settings. > > > > This is Unix logic, btw. On Windows, libcc1.dll will either be in the > > same directory where the GCC driver is, or on PATH, or in libexec. So > > maybe you should qualify the above by saying this is on Posix hosts; > > we could then amend it when this is supported on Windows (assuming it > > isn't for now). > > I do not think it would work on MS-Windows host as gcc/libcc1/ uses: > # If any of these functions are missing, simply don't bother building > # this plugin. > GCC_ENABLE_PLUGINS > AC_CHECK_FUNC(socketpair, , enable_plugin=no) > AC_CHECK_FUNC(select, , enable_plugin=no) > AC_CHECK_FUNC(fork, , enable_plugin=no) > AM_CONDITIONAL(ENABLE_PLUGIN, test $enable_plugin = yes) You underestimate the hacker power ;-) Trust me, soon enough this will work on Windows, and these conditions will then change. So I still think we should qualify the above logic by saying that it is specific to Posix systems. Thanks.