[Sablevm-developer] building out-of-the-box on non-Linux platform
Brought to you by:
egagnon
From: David <db...@cs...> - 2004-01-17 09:18:00
|
Hi, I think it would be great if SableVM could be built out-of-the-box on all platforms including the non-Linuxian FreeBSD and OS X. It will simplify my life as I want to build and test on these platforms. Currently source code is not an issue, it is more a configure/Makefile isssue. src/libsablevm/Makefile.am has some line like: libsablevm_la_LIBADD =3D -lpthread -lm -lffi -lltdl -lrt FreeBSD does not like -lpthread. OS X does not like -lrt. This is because functionnality is located elsewhere and there are no such libXX.so file... (Actually, on OS X, there is a single libSystem that includes implementation of libc, libm, libpthread and probably others. libc etc. are only symlinks to libSystem. But there are no librt symlinks in the default installation) A long time ago, I had: if REQ_LPTHREAD REQ_LIBS =3D -lpthread -lm -lffi -lltdl -lrt else REQ_LIBS =3D -lc_r -lm -lffi -lltdl -lrt endif libsablevm_la_LIBADD =3D ${REQ_LIBS} where REQ_LPTHREAD was set in ./configure.ac. This was ok for FreeBSD but will become more complex with -lrt on/off. Note: I tried first with simpler things but automake/conf tools didn't like it. There are some restriction of what the right hand side arg of libsablevm_la_LIBADD can be for the autoconf/make tools, don't remember which one. I will play more with it but any help/advice from autoconf/make expert would be appreciated on the best way it could be done. David --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |