Hello,

Ok, second try

I downloaded and installed Picolisp 32 bits on mac os 10.6. Everything went all 
right. Then I tried to install the library for openGL and I had to modify the 
makefile to build a 32 bits lib.

**********
DYNAMIC-LIB-FLAGS = -m32 -dynamiclib -undefined dynamic_lookup -framework 
OpenGL -framework GLUT
**********

I do not believe the -framework OpenGL is required, but it may be cleaner

**********
c.o:
gcc -c -O -m32 -pipe \
-falign-functions -fomit-frame-pointer -fno-strict-aliasing \
-W -Wimplicit -Wreturn-type -Wunused -Wformat \
-Wuninitialized -Wstrict-prototypes \
-D_GNU_SOURCE  -D_FILE_OFFSET_BITS=64  $*.c
**********

I had the -m32. I had the -fno-strict-aliasing, I do not know if it is 
required, but PicoLisp need it and there is some code in the pico.h file which 
is included.

I am no makefile specialist. Adding -m32 will impact compilation on the other 
platforms. There may be better ways to fix it too. 

The lib/gcc.l file may need a similar fix, but I have not try to use it. 

The problem arises on 64 bits macs which support both kind of binaries : 64 
seems to be the default.

Thanks,

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

Reply via email to