From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 24 Feb 2023 17:10:52 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pVaeq-0019UA-7g for lore@lore.pengutronix.de; Fri, 24 Feb 2023 17:10:52 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pVaep-0007K5-Oo; Fri, 24 Feb 2023 17:10:51 +0100 Received: from smtp72.iad3a.emailsrvr.com ([173.203.187.72]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVaeQ-0007JR-H9 for ptxdist@pengutronix.de; Fri, 24 Feb 2023 17:10:27 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mev.co.uk; s=20221208-6x11dpa4; t=1677255024; bh=18HC0uRUF/kLTFLsvjp2tNiYsSwS+EmON3E887JC1c0=; h=Date:Subject:To:From:From; b=v79zj/sQdMJodDJkuBC+7zjL9LJz3lW+SL3pu6XHVivUzrH72anxhIsoTNEtzc8Ke EKAzt5DFM7DxDP3VdksUkMkr7eHdSWnMdR9SrOVT9BS0jHvHpT1553qY4If5Fts0Mi fjpnVpk2xIflMny275WZKRtwZXfJzVIjaJug0tMs= X-Auth-ID: abbotti@mev.co.uk Received: by smtp26.relay.iad3a.emailsrvr.com (Authenticated sender: abbotti-AT-mev.co.uk) with ESMTPSA id CD12142A8 for ; Fri, 24 Feb 2023 11:10:23 -0500 (EST) Message-ID: Date: Fri, 24 Feb 2023 16:10:22 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 To: ptxdist@pengutronix.de References: <20230220134105.28904-1-abbotti@mev.co.uk> <9af82edb-4f5f-ee85-681f-bbc2d253829f@mev.co.uk> <20230224144513.GV11263@pengutronix.de> Content-Language: en-GB From: Ian Abbott Organization: MEV Ltd. In-Reply-To: <20230224144513.GV11263@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Classification-ID: b0854045-5496-4f43-8932-8014faa71bb1-1-1 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] [PATCH] libtahu: Change CFLAGS to use 64-bit system time X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false On 24/02/2023 14:45, Michael Olbrich wrote: > On Fri, Feb 24, 2023 at 12:03:14PM +0000, Ian Abbott wrote: >> Hi Michael, >> >> Sorry to be a pain. I'm attempting to inject extra CFLAGS through the >> toolchain wrappers, but I'm not sure how to do it. Here is one of my >> attempts that does not work: >> >> # >> ---------------------------------------------------------------------------- >> # Prepare >> # >> ---------------------------------------------------------------------------- >> >> LIBTAHU_CONF_TOOL := NO >> >> # >> ---------------------------------------------------------------------------- >> # Compile >> # >> ---------------------------------------------------------------------------- >> >> # -D_TIME_BITS=64 requires -D_FILE_OFFSET_BITS=64 >> LIBTAHU_CPPFLAGS := -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 >> LIBTAHU_CFLAGS := -O2 >> LIBTAHU_MAKE_ENV := $(CROSS_ENV) >> # Just build the dynamic library. >> LIBTAHU_MAKE_OPT := \ >> $(CROSS_ENV_PROGS) \ >> lib/libtahu.so >> >> $(STATEDIR)/libtahu.compile: >> @$(call targetinfo) >> @$(call world/compile, LIBTAHU) >> @$(call touch) >> >> I'm obviously missing something to pass the properly wrapped CC and CPP >> variables (incorporating the extra flags) to 'make'. Could you provide a >> clue how to fix it? > > Are you sure it does not work? It will not be visible in the regular make > output. Run PTXdist with '-v' and then check platform-XXX/logfile. > > You should find a 'wrapper: ...' line for each compiler run and the extra > flags should be visible here. Oops, so they are! I never noticed. I understand what is going on now! -- -=( Ian Abbott || MEV Ltd. is a company )=- -=( registered in England & Wales. Regd. number: 02862268. )=- -=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=- -=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-