pg++
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. #!/bin/sh
  2. pthreads_root=/usr/local/pthreads
  3. build_root=/dr1/my/masters/mysql/mit-pthreads
  4. src_root=/dr1/my/masters/mysql/mit-pthreads
  5. include_dir='-I$pthreads_root/include'
  6. lib_dir='-L$pthreads_root/lib'
  7. libs='-lpthread -lm -lgcc -lpthread'
  8. # Might be a good idea to also provide a way to override pthreads_root
  9. # so that we can use this script in the build tree, before installation.
  10. if arg="$1" ; then
  11.     case $arg in
  12.     -notinstalled)
  13.         include_dir='-I$build_root/include -I$src_root/include'
  14.         lib_dir='-L$build_root/obj'
  15.         shift
  16.         ;;
  17.     esac
  18. fi
  19. for arg in "$@" ; do
  20.     case $arg in
  21. -nostdinc) include_dir= ;;
  22. -nostdlib | -c) libs= ;;
  23.     esac
  24. done
  25. # Include the -L option in any case, just in case the user provided the
  26. # names of some libraries we've built threaded versions of.
  27. eval exec g++ '"$@"' $include_dir $lib_dir $libs