用 DJGPP 編譯 SQLite


$: cd path/to/sqlite

$: ../configure --host=i586-pc-msdosdjgpp config_BUILD_CC=gcc config_TARGET_CC=i586-pc-msdosdjgpp-gcc --disable-tcl --disable-threadsafe
其中 i586-pc-msdosdjgpp  是 cross compiler 的前綴,編譯完成後,可以用 file 查看物件檔屬性:

$:  file where.o
80386 COFF executable not stripped - version 30821

留言

這個網誌中的熱門文章

Heroku + Bootstrappers 快速佈署

php/symfony - 在 ubuntu 執行 composer install 出現 "ext-curl *", "ext-gd *", "lib-icu" 的相依錯誤訊息

Git - 同時 push 到多個 remote