Random ramblings

All | General | Motorbikes | Networking | Odds & Sods | Soapbox | Solaris
« Rossi on four wheels | Main | apache referer block... »
20051130 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]

Trackback URL: http://blogs.sun.com/paulj/entry/gnu_libtool_sun_studio_and
Comments:

Even gcc is not enough, gld is requeried for linking when ever source contains assembly code (non PIC according to /usr/bin/ccs/ld).

Posted by romain on November 30, 2005 at 01:01 PM GMT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed

Calendar

RSS Feeds

Search

Links

Navigation

Referers