Ignore:
Timestamp:
02/05/2011 12:25:49 (13 months ago)
Author:
jamesog
Message:

Finally unbreak build on Solaris!

  • Add code to configure to detect whether we should compile with -m32 or -m64. GCC on Solaris defaults to 32-bit even of the OS is running in 64-bit mode. (Solaris only)
  • Change the CFLAGS, CXXFLAGS and LDFLAGS definitions to be append rather than set. This allows passing them at compile-time to make(1).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/configure.ac

    r2952 r2954  
    2222  AC_MSG_ERROR([[basic compile checks failed, the C++ compiler is broken]]) 
    2323fi 
     24 
     25case $build_os in 
     26solaris*) 
     27  isa_bits=`isainfo -b` 
     28  AC_MSG_NOTICE([setting compiler to use -m$isa_bits on Solaris]) 
     29  CFLAGS="$CFLAGS -m$isa_bits" 
     30  CXXFLAGS="$CXXFLAGS -m$isa_bits" 
     31  LDFLAGS="$LDFLAGS -m$isa_bits" 
     32  ;; 
     33esac 
    2434 
    2535if test "x$GXX" = "xyes"; then 
     
    412422        if test "$cmd" = "subdir"; then 
    413423                echo 
    414                 export CC CXX CXXFLAGS LDFLAGS LIBS 
     424                export CC CXX CFLAGS CXXFLAGS LDFLAGS LIBS 
    415425                args="$configure_args --target=$target_alias" 
    416426                echo "Configuring $subdir with: $args" 
Note: See TracChangeset for help on using the changeset viewer.