From patchwork Thu Oct 4 21:18:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 189326 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 16AA92C03DF for ; Fri, 5 Oct 2012 07:19:55 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 09F93A053A; Thu, 4 Oct 2012 21:19:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 006xrzjsulzY; Thu, 4 Oct 2012 21:19:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id A8E7DA02F7; Thu, 4 Oct 2012 21:19:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 787718F78D for ; Thu, 4 Oct 2012 21:19:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 119208F0AB for ; Thu, 4 Oct 2012 21:18:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0Tq0LyozSu-c for ; Thu, 4 Oct 2012 21:18:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (mail.free-electrons.com [88.190.12.23]) by whitealder.osuosl.org (Postfix) with ESMTP id 0929C8EA1D for ; Thu, 4 Oct 2012 21:18:43 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id BC52913D; Thu, 4 Oct 2012 23:17:52 +0200 (CEST) Received: from skate (humanoidz.org [82.247.183.72]) by mail.free-electrons.com (Postfix) with ESMTPSA id F1ECBDE; Thu, 4 Oct 2012 23:17:44 +0200 (CEST) Date: Thu, 4 Oct 2012 23:18:33 +0200 From: Thomas Petazzoni To: Francois Perrad Message-ID: <20121004231833.7c4f3cb5@skate> In-Reply-To: <1348593508-14254-2-git-send-email-francois.perrad@gadz.org> References: <1348593508-14254-1-git-send-email-francois.perrad@gadz.org> <1348593508-14254-2-git-send-email-francois.perrad@gadz.org> Organization: Free Electrons X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Cc: buildroot@busybox.net Subject: Re: [Buildroot] [PATCH v8 02/11] perl: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net François, On Tue, 25 Sep 2012 19:18:18 +0200, Francois Perrad wrote: > + -Dldflags="$(TARGET_LDFLAGS) -l gcc_s" \ You should also apply the following patch: Otherwise, the build fails with: /home/thomas/projets/buildroot/output/host/usr/bin/arm-linux-gnueabihf-gcc -l gcc_s -fstack-protector -o miniperl \ perlmini.o opmini.o miniperlmain.o malloc.o gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o pp.o: In function `Perl_pp_pow': pp.c:(.text+0x1b24): undefined reference to `pow' pp.o: In function `Perl_pp_modulo': pp.c:(.text+0x1f92): undefined reference to `floor' pp.c:(.text+0x1fa0): undefined reference to `floor' pp.c:(.text+0x1fbc): undefined reference to `fmod' [...] with certain toolchains. Also, on the target there is a usr/bin/perl and a usr/bin/perl5.x.y files. One is a hardlink to the other, but it is always a bit disturbing to see two big files of the same size. Shouldn't we replace that by a symlink instead, which is more obvious? Thanks! Thomas diff --git a/package/perl/perl.mk b/package/perl/perl.mk index fbe7ba9..4e6f50b 100644 --- a/package/perl/perl.mk +++ b/package/perl/perl.mk @@ -52,7 +52,7 @@ define PERL_CONFIGURE_CMDS -Dnm="$(TARGET_NM)" \ -Dranlib="$(TARGET_RANLIB)" \ -Dccflags="$(TARGET_CFLAGS)" \ - -Dldflags="$(TARGET_LDFLAGS) -l gcc_s" \ + -Dldflags="$(TARGET_LDFLAGS) -l gcc_s -lm" \ -Dlddlflags="-shared" \ -Dlibc=$(TARGET_HOST)/usr/$(GNU_TARGET_NAME)/sysroot/lib/libc.so \ -Duseshrplib \