Something in this change causes shared builds to fail. I used the information provided last week about putting Cubit in my LPATH and tried rebuilding CGM in shared mode using Cubit and OCC in 2 different configurations. Both fail when linking libcgm with the following error: gcc: libcgm.so.0: No such file or directory gcc: unrecognized option '-soname' make[2]: *** [libcgm.la] Error 1 This is because the last line of the long link statement says: "/home/fathom/3rdparty/occ/OpenCASCADE6.3.0/gcc/lib/libTKBinL.so -ldl - lm -lc -soname libcgm.so.0 -o .libs/libcgm.so.0.0.0" I've tried to figure out what the error is in this file but I haven't found it. Somehow the '-Wl,' switch is being removed from the archive commands. Building with the previous rev, 3835, works. --Bob On May 12, 2010, at 12:53 PM, [email protected] wrote:
Author: kraftche Date: 2010-05-12 12:53:11 -0500 (Wed, 12 May 2010) New Revision: 3886
Modified: cgm/trunk/m4/compiler.m4 Log: sync compiler configuration w/ MOAB
Modified: cgm/trunk/m4/compiler.m4 =================================================================== --- cgm/trunk/m4/compiler.m4 2010-05-12 17:50:25 UTC (rev 3885) +++ cgm/trunk/m4/compiler.m4 2010-05-12 17:53:11 UTC (rev 3886) @@ -21,6 +21,7 @@ # CPP - The C preprocessor # CC - The C compiler # CXX - The C++ compiler +# FC - The Fortran compiler # CFLAGS - C compiler flags # CXXFLAGS - C++ compiler flags # WITH_MPI - 'yes' if parallel support, 'no' otherwise @@ -41,7 +42,6 @@ test "xno" = "x$CHECK_CXX" || CHECK_CXX=yes test "xno" = "x$CHECK_FC" || CHECK_FC=yes
- # Save these before calling AC_PROG_CC or AC_PROG_CXX # because those macros will modify them, and we want # the original user values, not the autoconf defaults. @@ -54,10 +54,10 @@ [WITH_MPI=$withval],[WITH_MPI=no] ) case "x$WITH_MPI" in xno) - CC_LIST="cc gcc cl egcs pgcc" - CXX_LIST="CC aCC cxx xlC_r xlC c++ g++ pgCC gpp cc++ cl FCC KCC RCC" - FC_LIST="gfortran ifort pgf90" - F77_LIST="gfortran ifort pgf77" + CC_LIST= + CXX_LIST= + FC_LIST= + F77_LIST= ;; xyes) CC_LIST="mpicc mpcc" @@ -111,16 +111,32 @@ esac
if test "xno" != "x$CHECK_CC"; then - AC_PROG_CC( [$CC_LIST] ) + if test "x" = "x$CC_LIST"; then + AC_PROG_CC + else + AC_PROG_CC( [$CC_LIST] ) + fi fi AC_PROG_CPP if test "xno" != "x$CHECK_CXX"; then - AC_PROG_CXX( [$CXX_LIST] ) + if test "x" = "x$CXX_LIST"; then + AC_PROG_CXX
participants (1)
-
Robert Smith