Finding shared library at run-time

Loren James Rittle rittle@latour.rsch.comm.mot.com
Mon May 22 18:46:00 GMT 2000


FYI, I currently need this patch (which is non-portable, I suppose) to
find the shared library at run-time before installation:

Index: mkcheck.in
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/mkcheck.in,v
retrieving revision 1.5
diff -p -r1.5 mkcheck.in
*** mkcheck.in	2000/05/22 21:50:47	1.5
--- mkcheck.in	2000/05/23 01:19:47
*************** fi
*** 61,70 ****
  
  #LIB_PATH == where to find the build library binaries.
  if [ $WHICH != "1" ]; then
!   LIB_PATH="-L$BUILD_DIR/src/.libs"
    CXX="../../gcc/g++ -B../../gcc/"
  elif [ $WHICH -eq 1 ]; then
!   LIB_PATH="-L$PREFIX_DIR/lib"
    CXX="$PREFIX_DIR/bin/g++"
  fi
  
--- 61,70 ----
  
  #LIB_PATH == where to find the build library binaries.
  if [ $WHICH != "1" ]; then
!   LIB_PATH="-L$BUILD_DIR/src/.libs -R$BUILD_DIR/src/.libs"
    CXX="../../gcc/g++ -B../../gcc/"
  elif [ $WHICH -eq 1 ]; then
!   LIB_PATH="-L$PREFIX_DIR/lib -R$PREFIX_DIR/lib"
    CXX="$PREFIX_DIR/bin/g++"
  fi
  


More information about the Libstdc++ mailing list