Wednesday November 30, 2005 GNU libtool, Sun Studio and 64bit builds
Many free software projects, particularly ones which use autoconf/automake build files, use GNU libtool as a wrapper around compiler and linker. Unfortunately libtool doesn't pass the "-xtarget= " (e.g -xtarget=generic64), nor most other SOS10 specific link+compile flags, to ld when linking. This then will cause the build to fail if the objects were built 64bit, as the linker will try link against 32bit system libraries. A quick workaround is to set CC to 'cc -xtarget=....'. Other flags which must be passed at link stage can also be put here (-xipo, -xildoff, etc.). This apparently is fixed in libtool 1.5.20. Another workaround is to pass these flags using -Wl.
Course, all too often Free software projects will not build at all with anything but GCC, sadly.
( Nov 30 2005, 11:21:09 AM GMT ) Permalink Comments [1]
Posted by romain on November 30, 2005 at 01:01 PM GMT #