0
我想编译gerbv 2.6,以便我可以将它包含在我的Heroku bin目录中,但我似乎无法弄清楚。我已经试过的各种组合:如何静态编译geroku为Heroku
CFLAGS='-static -static-libgcc -static-libstdc++' ./configure
./configure --enable-static
./configure --enable-static=yes --enable-shared=no
但运行make
后,我总是得到:
src/gerbv: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x401fe83e54660a42e80e4c529fde85799728cdcb, not stripped
我跑出来的想法。任何人都有吗?
你是对的,最后我只是使用ldd来识别我需要的共享库,然后通过exec /lib/ld.config.so运行它们,以便我可以覆盖库路径。 – jamesotron 2012-04-24 04:24:34