[Insight-developers] vcl compilation--Compiler flags not propogated correctly

Hans J. Johnson hans-johnson at uiowa . edu
Mon, 22 Dec 2003 09:49:58 -0600


Hello,

I'm running into a problem with the intel compiler compilation of vcl
under redhat 9.  A compiler flag "-i_dynamic" is required for this to
work (see
http://intel . forums . liveworld . com/thread . jsp?forum=160&thread=6010&message=18182&q=redhat+9#18182).  I've specified it at the top level CMAKE, but the commands are not propogated down the build tree.  The first error that encounters this is in the cmake generated file: Insight-build/Utilities/vxl/vcl/Makfile

The error is that the following rule has none of my compilation flags
(most important the -i_dynamic
flag).                                                                                                   
/scratch/purify/Testing/icc/DEBUG/Insight/bin/libitkvcl.so:
$(itkvcl_SRC_OBJS)  $(itkvcl_DEPEND_LIBS)
        @echo "Building shared library
/scratch/purify/Testing/icc/DEBUG/Insight/bin/libitkvcl.so..."
        $(RM) /scratch/purify/Testing/icc/DEBUG/Insight/bin/libitkvcl.so
        icc -fPIC   -shared -o
/scratch/purify/Testing/icc/DEBUG/Insight/bin/libitkvcl.so
$(itkvcl_SRC_OBJS)  -L/scratch/purify/src/buildhome/icc/DEBUG/lib -L.
-L/scratch/purify/Testing/icc/DEBUG/Insight/bin -lm
-Wl,-rpath,/scratch/purify/src/buildhome/icc/DEBUG/lib:.:/scratch/purify/Testing/icc/DEBUG/Insight/bin


Regards,
Hans