- 论坛徽章:
- 0
|
上面的高手,再问个问题,我在configure的时候在设置的编译为静态库的选项:
./configure ..... --enable-shared=no --enable-static=yes --with-static-modules=smbd
然后修改Makfile中CFLAGS, LDFLAGS,加上-static
结果,make后bin下的smbd还是动态的........
我的configure操作如下:
#!/bin/sh
export TOOLCHAIN=/usr/local/toolchain_mipsel
export LD_LIBRARY_PATH=$TOOLCHAIN/lib
export CPPFLAGS=-I$TOOLCHAIN/inlcude
export CFLAGS=-I$TOOLCHAIN/include
./configure CC=mipsel-linux-gcc AR=mipsel-linux-ar --host=i686 --target=mipsel-linux --enable-shared=no --enable-static=yes --with-static-modules=smbd
有没有方法让他不到板子上的/lib上去找libgcc_s.so.1这个库,而是到一个指定的目录上找呢,请高手帮忙解答下,还有如何将其编译为静态的程序,谢谢了 |
|