From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25362 invoked by alias); 14 Jun 2012 16:26:19 -0000 Received: (qmail 25352 invoked by uid 22791); 14 Jun 2012 16:26:18 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,TW_PT,TW_TX,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.hytera.de (HELO mail.hytera.de) (62.157.183.118) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Jun 2012 16:26:05 +0000 Received: from domino.hytera.de ([172.21.102.22] helo=nbmx01.hytera.de) by mail.hytera.de with esmtp (Exim 4.72) (envelope-from ) id 1SfCs0-0005Pu-DG for crossgcc@sourceware.org; Thu, 14 Jun 2012 18:26:04 +0200 To: crossgcc@sourceware.org Subject: Packaging OSELAS.Toolchain: How to set DESTDIR properly MIME-Version: 1.0 Message-ID: From: Dennis.Herbrich@hytera.de Date: Thu, 14 Jun 2012 16:26:00 -0000 Content-Type: text/plain; charset="US-ASCII" Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00018.txt.bz2 Greetings! I would like to build the current OSELAS.Toolchain-2011.11.1 with ptxdist-2011.11.0 as recommended, and package it for further distribution as an Arch Linux package. Building and installing normally as documented is not a problem, but I fail to fully grasp what settings are necessary to install the files to an arbitrarily prefixed location, ie. /tmp/makepkg/pkg/opt instead of /opt, without messing up GCC's sysroot, search-dirs and friends. Exporting PTX_AUTOBUILD_DESTDIR=/tmp/makepkg/pkg before running ptxdist go seemed to install the toolchain where I wanted, but unfortunately also added my prefix to the compiled in defaults of GCC. Is there a configuration option to do what I want? Something similar to "make DESTDIR=/prefix" that is correctly used throughout the whole toolchain build and install process automagically? If not, I'd be thankful for pointers to what would need to be patched to make this happen. I really want a cleanly buildable package of this toolchain. ;) Thank you for your consideration, Dennis Herbrich -- For unsubscribe information see http://sourceware.org/lists.html#faq