Re: Cross Compiling PicoLisp for ARM7

2017-10-04 Thread rick
Thanks for the information on this, Mickey!  And also thanks for your
effort recently tweaking src/Makefile so we could have these useful
"hooks".

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Cross Compiling PicoLisp for ARM7

2017-10-04 Thread Mickie Byrd

Howdy List,

When compiling PicoLisp for ARM7, the build fails with:

  arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-m32’

To address this, pass in "M32="

  $ make -C src clean
  $ make -C src M32=

When using BusyBox configured to only use shared libraries, the build fails
with:

  arm-linux-gnueabihf-ld: ext.o: relocation R_ARM_THM_MOVW_ABS_NC against `Nil' 
can not be used when making a shared object; recompile with -fPIC

To build ext.o and ht.o to be relocatable, pass in -fPIC via DYNAMIC-CC-FLAGS:

  $ make -C src clean
  $ make -C src M32= DYNAMIC-CC-FLAGS=-fPIC

Build should succeed with PicoLisp v17.10.4 onward.

Mickie


--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe