From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by sourceware.org (Postfix) with ESMTPS id 81C3E3858D3C for ; Mon, 2 May 2022 13:37:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 81C3E3858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f45.google.com with SMTP id w4so19583049wrg.12 for ; Mon, 02 May 2022 06:37:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=ow37RMFA1D5WNu9i+HvVRH6MKSiXJejkCCTvC+/uBDE=; b=un6+ERzzR+7ZRM59rbsHggDxPt0NkYX5s7UBtGHu1yw6a9Lv7k+GcPw8D99PCpAMT3 IHOqigFJ8ViFYI/NBV0GCKBvFFabZX9e8HMhouceMI4Zf6lYbWj9m+LEpb7fgBpTvjgZ RtujVytUhOHd/OR6FjHz86iLH2aTezQUs4mKYX9bGwTutfy9HKp4BmhXzTtDj5xgFSl3 xhuO+eIFRoD4dgIHC5z3q85AGWp+E67hTwbuTrmpSmSCliY0ZnDLdXc90bcI5bOh5Mmy SYQwBEEwFKxYYE9J+hdq6NRnGJPJhNkuF3ODDGy43F5xSQ52RZc+S2b7iGomfGHd0FvY NkGQ== X-Gm-Message-State: AOAM530h+I3AiESpVIzO8Uvc3Va0usbuZdR4DOWaAsMn71eY6YvdeRMt 37WJAgLbgyebeOI2WfpEN+N3w0P0VzI= X-Google-Smtp-Source: ABdhPJzZKikS03aseBQUDhuzToghFX1v0TBsYSs/sjkLqNWJ+ETKTuvVdpF+wzkXEZkcnHB1ZSor5w== X-Received: by 2002:adf:db46:0:b0:20a:c903:4711 with SMTP id f6-20020adfdb46000000b0020ac9034711mr9215301wrj.625.1651498636386; Mon, 02 May 2022 06:37:16 -0700 (PDT) Received: from ?IPV6:2001:8a0:f924:2600:209d:85e2:409e:8726? ([2001:8a0:f924:2600:209d:85e2:409e:8726]) by smtp.gmail.com with ESMTPSA id n4-20020adf8b04000000b0020c6a524fe0sm1604883wra.98.2022.05.02.06.37.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 May 2022 06:37:15 -0700 (PDT) Message-ID: <12aa0d4e-4225-4e7e-4443-8dee1e53092f@palves.net> Date: Mon, 2 May 2022 14:37:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: Statically link libwinpthread-1.dll in gdbserver Content-Language: en-US To: Claude Robitaille , "gdb@sourceware.org" References: <3ed22fb6-43f0-dc8c-a10e-6efa9baa8a1c@palves.net> From: Pedro Alves In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2022 13:37:18 -0000 On 2022-05-02 14:33, Claude Robitaille wrote: > Pedro Alves wrote: > Have you tried passing "-static" in CFLAGS/CXXFLAGS? > > No. I did not try. > > But, if I do this on the top level configure command line, wouldn't then everything be statically linked? Is it possible to pass this falg only to the gdbserver configure command? No, but you can use --disable-foo / --disable-foo to control which top level components you want to build, and/or use "make all-gdbserver" to build just gdbserver.