【问题】
折腾:
【记录】Cygwin下用arm-xscale-linux-gnueabi交叉编译libhttpd
期间,编译出错:
最后ld时出错:
CLi@PC-CLI-1 ~/develop/libhttpd/lighttpd-1.4.32 $ make CFLAGS=-I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include make all-recursive make[1]: Entering directory `/home/CLi/develop/libhttpd/lighttpd-1.4.32' Making all in src make[2]: Entering directory `/home/CLi/develop/libhttpd/lighttpd-1.4.32/src' make all-am make[3]: Entering directory `/home/CLi/develop/libhttpd/lighttpd-1.4.32/src' /bin/sh ../libtool --tag=CC --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\"" -DSBIN_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\"" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_flv_streaming.lo -MD -MP -MF .deps/mod_flv_streaming.Tpo -c -o mod_flv_streaming.lo mod_flv_streaming.c libtool: compile: arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\" -DSBIN_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_flv_streaming.lo -MD -MP -MF .deps/mod_flv_streaming.Tpo -c mod_flv_streaming.c -fPIC -DPIC -o .libs/mod_flv_streaming.o mv -f .deps/mod_flv_streaming.Tpo .deps/mod_flv_streaming.Plo /bin/sh ../libtool --tag=CC --mode=link arm-xscale-linux-gnueabi-gcc -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -module -export-dynamic -avoid-version -no-undefined -o mod_flv_streaming.la -rpath /home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib mod_flv_streaming.lo libtool: link: arm-xscale-linux-gnueabi-gcc -shared -fPIC -DPIC .libs/mod_flv_streaming.o -Wl,-soname -Wl,mod_flv_streaming.so -o .libs/mod_flv_streaming.so libtool: link: ( cd ".libs" && rm -f "mod_flv_streaming.la" && ln -s "../mod_flv_streaming.la" "mod_flv_streaming.la" ) /bin/sh ../libtool --tag=CC --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\"" -DSBIN_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\"" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_evasive.lo -MD -MP -MF .deps/mod_evasive.Tpo -c -o mod_evasive.lo mod_evasive.c libtool: compile: arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\" -DSBIN_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_evasive.lo -MD -MP -MF .deps/mod_evasive.Tpo -c mod_evasive.c -fPIC -DPIC -o .libs/mod_evasive.o mv -f .deps/mod_evasive.Tpo .deps/mod_evasive.Plo /bin/sh ../libtool --tag=CC --mode=link arm-xscale-linux-gnueabi-gcc -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -module -export-dynamic -avoid-version -no-undefined -o mod_evasive.la -rpath /home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib mod_evasive.lo libtool: link: arm-xscale-linux-gnueabi-gcc -shared -fPIC -DPIC .libs/mod_evasive.o -Wl,-soname -Wl,mod_evasive.so -o .libs/mod_evasive.so libtool: link: ( cd ".libs" && rm -f "mod_evasive.la" && ln -s "../mod_evasive.la" "mod_evasive.la" ) /bin/sh ../libtool --tag=CC --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\"" -DSBIN_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\"" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_webdav_la-mod_webdav.lo -MD -MP -MF .deps/mod_webdav_la-mod_webdav.Tpo -c -o mod_webdav_la-mod_webdav.lo `test -f 'mod_webdav.c' || echo './'`mod_webdav.c libtool: compile: arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\" -DSBIN_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_webdav_la-mod_webdav.lo -MD -MP -MF .deps/mod_webdav_la-mod_webdav.Tpo -c mod_webdav.c -fPIC -DPIC -o .libs/mod_webdav_la-mod_webdav.o mv -f .deps/mod_webdav_la-mod_webdav.Tpo .deps/mod_webdav_la-mod_webdav.Plo /bin/sh ../libtool --tag=CC --mode=link arm-xscale-linux-gnueabi-gcc -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -module -export-dynamic -avoid-version -no-undefined -o mod_webdav.la -rpath /home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib mod_webdav_la-mod_webdav.lo libtool: link: arm-xscale-linux-gnueabi-gcc -shared -fPIC -DPIC .libs/mod_webdav_la-mod_webdav.o -Wl,-soname -Wl,mod_webdav.so -o .libs/mod_webdav.so libtool: link: ( cd ".libs" && rm -f "mod_webdav.la" && ln -s "../mod_webdav.la" "mod_webdav.la" ) /bin/sh ../libtool --tag=CC --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\"" -DSBIN_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\"" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_magnet_la-mod_magnet.lo -MD -MP -MF .deps/mod_magnet_la-mod_magnet.Tpo -c -o mod_magnet_la-mod_magnet.lo `test -f 'mod_magnet.c' || echo './'`mod_magnet.c libtool: compile: arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\" -DSBIN_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_magnet_la-mod_magnet.lo -MD -MP -MF .deps/mod_magnet_la-mod_magnet.Tpo -c mod_magnet.c -fPIC -DPIC -o .libs/mod_magnet_la-mod_magnet.o mv -f .deps/mod_magnet_la-mod_magnet.Tpo .deps/mod_magnet_la-mod_magnet.Plo /bin/sh ../libtool --tag=CC --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\"" -DSBIN_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\"" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_magnet_la-mod_magnet_cache.lo -MD -MP -MF .deps/mod_magnet_la-mod_magnet_cache.Tpo -c -o mod_magnet_la-mod_magnet_cache.lo `test -f 'mod_magnet_cache.c' || echo './'`mod_magnet_cache.c libtool: compile: arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\" -DSBIN_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_magnet_la-mod_magnet_cache.lo -MD -MP -MF .deps/mod_magnet_la-mod_magnet_cache.Tpo -c mod_magnet_cache.c -fPIC -DPIC -o .libs/mod_magnet_la-mod_magnet_cache.o mv -f .deps/mod_magnet_la-mod_magnet_cache.Tpo .deps/mod_magnet_la-mod_magnet_cache.Plo /bin/sh ../libtool --tag=CC --mode=link arm-xscale-linux-gnueabi-gcc -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -module -export-dynamic -avoid-version -no-undefined -o mod_magnet.la -rpath /home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib mod_magnet_la-mod_magnet.lo mod_magnet_la-mod_magnet_cache.lo -lm libtool: link: arm-xscale-linux-gnueabi-gcc -shared -fPIC -DPIC .libs/mod_magnet_la-mod_magnet.o .libs/mod_magnet_la-mod_magnet_cache.o -lm -Wl,-soname -Wl,mod_magnet.so -o .libs/mod_magnet.so libtool: link: ( cd ".libs" && rm -f "mod_magnet.la" && ln -s "../mod_magnet.la" "mod_magnet.la" ) /bin/sh ../libtool --tag=CC --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\"" -DSBIN_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\"" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_cml_la-mod_cml.lo -MD -MP -MF .deps/mod_cml_la-mod_cml.Tpo -c -o mod_cml_la-mod_cml.lo `test -f 'mod_cml.c' || echo './'`mod_cml.c libtool: compile: arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\" -DSBIN_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_cml_la-mod_cml.lo -MD -MP -MF .deps/mod_cml_la-mod_cml.Tpo -c mod_cml.c -fPIC -DPIC -o .libs/mod_cml_la-mod_cml.o mv -f .deps/mod_cml_la-mod_cml.Tpo .deps/mod_cml_la-mod_cml.Plo /bin/sh ../libtool --tag=CC --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\"" -DSBIN_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\"" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_cml_la-mod_cml_lua.lo -MD -MP -MF .deps/mod_cml_la-mod_cml_lua.Tpo -c -o mod_cml_la-mod_cml_lua.lo `test -f 'mod_cml_lua.c' || echo './'`mod_cml_lua.c libtool: compile: arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\" -DSBIN_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_cml_la-mod_cml_lua.lo -MD -MP -MF .deps/mod_cml_la-mod_cml_lua.Tpo -c mod_cml_lua.c -fPIC -DPIC -o .libs/mod_cml_la-mod_cml_lua.o mv -f .deps/mod_cml_la-mod_cml_lua.Tpo .deps/mod_cml_la-mod_cml_lua.Plo /bin/sh ../libtool --tag=CC --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\"" -DSBIN_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\"" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_cml_la-mod_cml_funcs.lo -MD -MP -MF .deps/mod_cml_la-mod_cml_funcs.Tpo -c -o mod_cml_la-mod_cml_funcs.lo `test -f 'mod_cml_funcs.c' || echo './'`mod_cml_funcs.c libtool: compile: arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\" -DSBIN_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_cml_la-mod_cml_funcs.lo -MD -MP -MF .deps/mod_cml_la-mod_cml_funcs.Tpo -c mod_cml_funcs.c -fPIC -DPIC -o .libs/mod_cml_la-mod_cml_funcs.o mv -f .deps/mod_cml_la-mod_cml_funcs.Tpo .deps/mod_cml_la-mod_cml_funcs.Plo /bin/sh ../libtool --tag=CC --mode=link arm-xscale-linux-gnueabi-gcc -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -module -export-dynamic -avoid-version -no-undefined -o mod_cml.la -rpath /home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib mod_cml_la-mod_cml.lo mod_cml_la-mod_cml_lua.lo mod_cml_la-mod_cml_funcs.lo -lm libtool: link: arm-xscale-linux-gnueabi-gcc -shared -fPIC -DPIC .libs/mod_cml_la-mod_cml.o .libs/mod_cml_la-mod_cml_lua.o .libs/mod_cml_la-mod_cml_funcs.o -lm -Wl,-soname -Wl,mod_cml.so -o .libs/mod_cml.so libtool: link: ( cd ".libs" && rm -f "mod_cml.la" && ln -s "../mod_cml.la" "mod_cml.la" ) /bin/sh ../libtool --tag=CC --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\"" -DSBIN_DIR="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\"" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_trigger_b4_dl.lo -MD -MP -MF .deps/mod_trigger_b4_dl.Tpo -c -o mod_trigger_b4_dl.lo mod_trigger_b4_dl.c libtool: compile: arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib\" -DSBIN_DIR=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/sbin\" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -MT mod_trigger_b4_dl.lo -MD -MP -MF .deps/mod_trigger_b4_dl.Tpo -c mod_trigger_b4_dl.c -fPIC -DPIC -o .libs/mod_trigger_b4_dl.o mv -f .deps/mod_trigger_b4_dl.Tpo .deps/mod_trigger_b4_dl.Plo /bin/sh ../libtool --tag=CC --mode=link arm-xscale-linux-gnueabi-gcc -I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include -module -export-dynamic -avoid-version -no-undefined -o mod_trigger_b4_dl.la -rpath /home/CLi/develop/crosstool-ng/x-tools/armxscalelibhttpd/lib mod_trigger_b4_dl.lo -lpcre libtool: link: arm-xscale-linux-gnueabi-gcc -shared -fPIC -DPIC .libs/mod_trigger_b4_dl.o -lpcre -Wl,-soname -Wl,mod_trigger_b4_dl.so -o .libs/mod_trigger_b4_dl.so /home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/lib/gcc/arm-xscale-linux-gnueabi/4.6.0/../../../../arm-xscale-linux-gnueabi/bin/ld: cannot find -lpcre collect2: ld returned 1 exit status Makefile:976: recipe for target `mod_trigger_b4_dl.la' failed make[3]: *** [mod_trigger_b4_dl.la] Error 1 make[3]: Leaving directory `/home/CLi/develop/libhttpd/lighttpd-1.4.32/src' Makefile:851: recipe for target `all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/CLi/develop/libhttpd/lighttpd-1.4.32/src' Makefile:364: recipe for target `all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/CLi/develop/libhttpd/lighttpd-1.4.32' Makefile:293: recipe for target `all' failed make: *** [all] Error 2 CLi@PC-CLI-1 ~/develop/libhttpd/lighttpd-1.4.32 $
即:
ld: cannot find -lpcre |
【解决过程】
1.参考刚刚解决的:
【已解决】Cygwin下用arm-xscale-linux-gnueabi交叉编译libhttpd出错:fatal error: pcre.h: No such file or directory
中的做法,去在make时添加对应的ld的参数:
make CFLAGS=-I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include LDFLAGS='-L/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib -lpcre'
然后就可以继续编译了。
【总结】
当编译libhttpd出现:
ld: cannot find -lpcre |
的错误时,说明是没有找到pcre库。
解决办法是:
make时,添加上对应的pcre的库所在的路径即可:
make CFLAGS=-I/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include LDFLAGS='-L/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib -lpcre'
注:
1.前提是需要你先交叉编译pcre,可参考:
【记录】cygwin下用arm-xscale-linux-gnueabi交叉编译pcre
2.应该也是可以在configure时添加这些参数的。但是暂时懒得去深究了。
转载请注明:在路上 » 【已解决】cygwin下用arm-xscale-linux-gnueabi交叉编译libhttpd出错:ld: cannot find -lpcre