Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] missing reference to libm for MicroPerl
@ 2012-03-06 16:46 Joshua Jackson
  2012-03-07 23:07 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Joshua Jackson @ 2012-03-06 16:46 UTC (permalink / raw)
  To: buildroot

I am currently running into an issue with the compilation of MicroPerl
fails with a missing libm reference. I found the following patch that
was date from a couple years ago:

This fixes builds on my system, but I'm not sure what else it might break.

Is there another fix / setting I might be missing to prevent the need
for this patch?

I am using a CentOS 6 x86_64 host and am compiling for a i586 x86_32 target.

Thanks,
Josh

Patch against 2012.2 follows:


diff -uNr a/package/microperl/microperl.mk b/package/microperl/microperl.mk
--- a/package/microperl/microperl.mk    2012-02-29 17:19:47.000000000 -0500
+++ b/package/microperl/microperl.mk    2012-03-01 17:16:01.000000000 -0500
@@ -40,6 +40,7 @@
        $(SED) 's/^.*<command-line>.*//g' $(MICROPERL_DIR)/Makefile
        $(SED) 's/^.*<command-line>.*//g' $(MICROPERL_DIR)/x2p/Makefile
        $(SED) 's/^.*<command-line>.*//g' $(MICROPERL_DIR)/makefile
+       $(SED) 's/^libs =/libs = -lm/g' $(MICROPERL_DIR)/makefile
        $(SED) 's/^.*<command-line>.*//g' $(MICROPERL_DIR)/x2p/makefile
        touch $@

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] missing reference to libm for MicroPerl
  2012-03-06 16:46 [Buildroot] missing reference to libm for MicroPerl Joshua Jackson
@ 2012-03-07 23:07 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2012-03-07 23:07 UTC (permalink / raw)
  To: buildroot

>>>>> "Joshua" == Joshua Jackson <jjackson@vortech.net> writes:

 Joshua> I am currently running into an issue with the compilation of MicroPerl
 Joshua> fails with a missing libm reference. I found the following patch that
 Joshua> was date from a couple years ago:

 Joshua> This fixes builds on my system, but I'm not sure what else it
 Joshua> might break.

 Joshua> Is there another fix / setting I might be missing to prevent
 Joshua> the need for this patch?

Thanks. I committed a similar patch to git from Arnout earlier this
week.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-07 23:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 16:46 [Buildroot] missing reference to libm for MicroPerl Joshua Jackson
2012-03-07 23:07 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox