From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43067 invoked by alias); 13 Aug 2015 20:50:19 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 43057 invoked by uid 89); 13 Aug 2015 20:50:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-io0-f174.google.com Received: from mail-io0-f174.google.com (HELO mail-io0-f174.google.com) (209.85.223.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 13 Aug 2015 20:50:18 +0000 Received: by iods203 with SMTP id s203so65319582iod.0 for ; Thu, 13 Aug 2015 13:50:16 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.107.136.34 with SMTP id k34mr37223403iod.6.1439499016273; Thu, 13 Aug 2015 13:50:16 -0700 (PDT) Received: by 10.36.248.6 with HTTP; Thu, 13 Aug 2015 13:50:16 -0700 (PDT) Date: Thu, 13 Aug 2015 20:50:00 -0000 Message-ID: Subject: gdbserver - manually modify Makefile From: Ran Shalit To: gdb Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00025.txt.bz2 Hello, I've cross compile gdbserver according to wiki in: https://sourceware.org/gdb/wiki/BuildingCrossGDBandGDBserver ubuntu@ubuntu-laptop:~/gdb-7.9.1/gdb/gdbserver$ sudo ./configure --host=powerpc-buildroot-linux-gnu --disable-werror But on doing : make I've noticed that it uses the host gcc instead of the cross-compiler gcc. Only after manually modifying the Makefie with CC = powerpc-buildroot-linux-gnu-gcc instead of CC = gcc It was cross compiling as expected. Can anyone help me understand what was wrong doing in the above steps? Since this didn't work as expected I'm afraid that maybe the gdb as I compiled might also required some manually modifications which I am not aware of. These are the steps for gdb build: ubuntu@ubuntu-laptop:~/gdb-7.9.1/$ sudo ./configure --target=powerpc-buildroot-linux-gnu --disable-werror Thank you for your assistance, Ran