From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by sourceware.org (Postfix) with ESMTPS id 25A9B3858C74 for ; Mon, 28 Mar 2022 14:43:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 25A9B3858C74 Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-ddfa38f1c1so15404997fac.11 for ; Mon, 28 Mar 2022 07:43:47 -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:cc:references:from:in-reply-to :content-transfer-encoding; bh=wPp0XBghVbp/rdpPnRLCbuDRVF7BbufGyJxBzxEH9wU=; b=eXQOTL0Ins8eAgRz+soVA9hdFecJNVTJ5htVoXu7y4YbTdaCpq4GsgQsoW9QRt1rTg GcU/uUjU2YQokPGQ9p/cHDiwkFl24KEARqbraTFuJDFjsDmVKpH2/JASnfTmR6Tu0sDn k5Zpgw1LW2eUYi/mmC6wV7FlpQAuJ0a8xxH8kjb4Djo4gAekkNdICx1STzRI29Sy+Lbj lrXnnTuVRsweErgwicGsuSs7bGXUO2nulJnOwkRFFeSyaipOcTO+YwuDtB8YQAH6iN2V wkDuYSYfk6gSfMseEKoM8omMli+qFbX2FSuj1lGePhqgP4E8zX8jw3j1qgVjbpQVy/2h d+hQ== X-Gm-Message-State: AOAM53227IVLzM1xqJyilRPUWEpftYSEs9ZngVGApJLdbFyzEVa5U5iO kLIusIrltyexsSstmLd3yE1IepnKcdU= X-Google-Smtp-Source: ABdhPJweiwJRotyjDeCQe7x4WmTYyFmbIiquzIhcAm8qkEH/zm1FnHlXPLhRfMcF3bl+pWrVVvJFUQ== X-Received: by 2002:a05:6870:5608:b0:dd:a841:d129 with SMTP id m8-20020a056870560800b000dda841d129mr11402939oao.271.1648478626032; Mon, 28 Mar 2022 07:43:46 -0700 (PDT) Received: from [172.31.250.1] ([47.184.51.90]) by smtp.gmail.com with ESMTPSA id o18-20020a9d7652000000b005cbf6f5d7c5sm7282335otl.21.2022.03.28.07.43.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Mar 2022 07:43:45 -0700 (PDT) Message-ID: <601f3d61-b21b-5fe2-45f6-dd0e8bcc28fe@gmail.com> Date: Mon, 28 Mar 2022 09:43:45 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: Environment variable equivalent of -L Content-Language: en-US To: Segher Boessenkool Cc: gcc-help@gcc.gnu.org References: <20220328143554.GJ614@gate.crashing.org> From: Ian Pilcher In-Reply-To: <20220328143554.GJ614@gate.crashing.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_ASCII_DIVIDERS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2022 14:43:48 -0000 On 3/28/22 09:35, Segher Boessenkool wrote: > You could use what in DOS was called a response file: > '@FILE' > Read command-line options from FILE. The options read are inserted > in place of the original @FILE option. If FILE does not exist, or > cannot be read, then the option will be treated literally, and not > removed. I could also add the paths that I need to a variable of my own invention and pass that on the command line, e.g.: $ mips-openwrt-linux-musl-gcc ... -L${MY_LIB_PATHS} ... I just seems a bit weird that GCC honors CPATH and friends for header file locations, but there doesn't seem to be any equivalent for library paths. -- ======================================================================== Google Where SkyNet meets Idiocracy ========================================================================