From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from spam02.hesby.net (spam01.hesby.net [81.29.32.152]) by sourceware.org (Postfix) with ESMTP id C15A63858C53 for ; Wed, 7 Feb 2024 08:56:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C15A63858C53 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=hesbynett.no Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=hesbynett.no ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C15A63858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=81.29.32.152 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707296200; cv=none; b=e5EtzBFFBRs4x1Sa3OnzFrBKsLN42ZiGaXqU3JL+Fq4gNF+d7WPBl0kNbGBJXvx/Z620wscRHTDa40mb6hj5Itg1tI+SjrDxOgGUc5ziWvzW5g2IntAJflCcY3z53qbfXMjfVO35Eg6f/kbEzHq80K/T+KV7MOkx+LDliKtIzYo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707296200; c=relaxed/simple; bh=Nq7QrMcmxlHqdzy+cbfTg35MdQl55a3jFpNRM6cWSo8=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=raMFPLSU2Xo5SjMdBLoPC/nm7TxxE1FHmBsh31AukDleQPSJQ5N8gRbrFCY+KiYe5ywWN9SoE4GCIUeS8yud0GHoEEjkqf7uRlYXPbG0eoTWcMzZt07Dz8BU6vJhtZnvAKdl3eX/+dJdMmACrZViIMI9+/qbYJQdb+GMddK20XI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from [192.168.0.63] (unknown [79.161.10.130]) by spam02.hesby.net (Halon) with ESMTPSA id c8b0c726-c596-11ee-b387-506b8dfa0e58; Wed, 07 Feb 2024 09:56:36 +0100 (CET) Message-ID: <1092a0b0-b328-2e33-1265-78c8b0c6309a@hesbynett.no> Date: Wed, 7 Feb 2024 09:56:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: Fwd: Problems building gcc Content-Language: en-GB To: T Rex , gcc-help@gcc.gnu.org References: From: David Brown In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3033.1 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 06/02/2024 23:35, T Rex via Gcc-help wrote: > Thanks for the reply. > > What I need are all the files that are in /usr/include, at the > $prefix/include location. I'm building a package for flatpak and I need > everything that gcc uses and makes it work to be contained in the directory > specified by $prefix. I was thinking about simply copying it from the > system but it seems to me that it's not the right thing to do and maybe it > won't work. > Some resources you might find helpful here are : Although the "crosstools" project was primarily created for building cross-compiler toolchains, it works perfectly well when the target system is the same as the host system. The aim is a complete toolchain, including include files, library, assembler, linker, compiler, and so on. I've found it useful for making updated static gcc toolchains for old Linux systems where the distro toolchains are older, and you don't want to face the complications of having a system glibc newer than the distro version supports. David