0
+ − 1 Building DynCall on Solaris and other SunOS distributions
+ − 2 =========================================================
+ − 3
+ − 4
+ − 5 Current Status of Solaris Architectures:
+ − 6
+ − 7 i386 : ok.
+ − 8 AMD64 : ok.
303
+ − 9 SPARC : ok.
+ − 10 SPARC64 : bugs in dyncall (see BUGS).
0
+ − 11
+ − 12 Supported Compilers: SunPro C/C++ compiler and GCC.
+ − 13 Supported Build-Systems: configure/make, Makefile.embedded and CMake.
+ − 14
+ − 15
+ − 16 Details
+ − 17 =======
+ − 18 It has been ported and tested for x86 and sparc32/64 on Solaris 10/X86
+ − 19 using the SunPro compiler suite and sun's make. The same goes for
+ − 20 OpenSolaris distributions - the library builds and runs fine on Nexenta
+ − 21 x86 and x64.
+ − 22 On Solaris, it also cross-builds for amd64 just fine, but the we don't
+ − 23 have access to a x64 Solaris to run the tests.
+ − 24
+ − 25
+ − 26 Building DynCall:
+ − 27 -----------------
+ − 28
+ − 29 $ ./configure
+ − 30 $ make
+ − 31
+ − 32
+ − 33
+ − 34 It is also possible to use 'Makefile.embedded' for sun make, GNU make and
+ − 35 BSD make:
+ − 36
+ − 37
+ − 38 Build with SUN make and compilers from sun using Makefile.embedded:
+ − 39 -------------------------------------------------------------------
+ − 40
+ − 41 $ make -f Makefile.embedded sun
+ − 42 $ (cd test; make -f Makefile.embedded sun)
+ − 43
+ − 44
+ − 45 Build for sparc64 with SUN make and compilers from sun using Makefile.embedded:
+ − 46 -------------------------------------------------------------------------------
+ − 47
+ − 48 $ make -f Makefile.embedded sun-64bit
+ − 49 $ (cd test; make -f Makefile.embedded sun-64bit)
+ − 50
+ − 51
+ − 52 Build with SUN make and GNU C compiler using Makefile.embedded:
+ − 53 ---------------------------------------------------------------
+ − 54
+ − 55 $ make -f Makefile.embedded sun-gcc
+ − 56 $ (cd test; make -f Makefile.embedded sun-gcc)
+ − 57
+ − 58
+ − 59 Build for sparc64 with SUN make and GNU C compiler using Makefile.embedded:
+ − 60 ---------------------------------------------------------------------------
+ − 61
+ − 62 $ make -f Makefile.embedded sun-gcc-64bit
+ − 63 $ (cd test; make -f Makefile.embedded sun-gcc-64bit)
+ − 64
+ − 65
+ − 66 NOTE: There are still issues with the sparc64 port on Solaris.
+ − 67
+ − 68
+ − 69 Build with CMake, Sun make and SunPro for sparc64:
+ − 70 --------------------------------------------------
+ − 71
+ − 72 $ cmake -DCMAKE_C_FLAGS=-m64 -DCMAKE_ASM_FLAGS=-m64 -DCMAKE_CXX_FLAGS=-m64 .
+ − 73 $ make
+ − 74
+ − 75 Installation
+ − 76 ------------
+ − 77
+ − 78 $ make -f Makefile.embedded PREFIX=<some/prefix> install
+ − 79
+ − 80
+ − 81 Tested Platforms
+ − 82 ----------------
+ − 83
+ − 84 x86/amd64:
+ − 85 - using Solaris 10 using SunPro Tools
+ − 86 - using Nexenta (SunOS 5.11 kernel) using GNU tools
+ − 87
+ − 88 sparc 32/64 bit:
+ − 89 - SunOS 5.1 using SunPro and GCC on a Sun Fire V440 via developer account
+ − 90 thanks to gwdg.de!
+ − 91