August 13, 2010

開啟游標位置字串的檔案 (進階版)

基本用法參考這裡


進階設定
  • path - 到哪些路徑去尋找這個檔案
  • includeexpr - lua 跟 java 的 include path 是 dir1.dir2.file,可以修改要尋找的檔案字串
  • suffixesadd - 增加尋找的副檔名
範例
set includeexpr=substitue(v:fname,'\\.','/','g')
set suffixesadd=.lua,.java

August 03, 2010

Shared Libraries

Ref: http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

動態更改的方法
  • 方法一
/lib/ld-linux.so.2 --library-path PATH EXECUTABLE
  • 方法二
#!/bin/sh
export LD_LIBRARY_PATH=PATH:$LD_LIBRARY_PATH
exec $*

build static svn

  • 需要 aprapr-utilneon
  • configure 的參數 --prefix=DIR --disable-shared --enable-static --with-apr=DIR --with-apr-util=DIR --with-neon=DIR