./configure 有如下错误
./configure
platform: freebsd (freebsd)
cp -rp bundle/ build
cd build
cd LuaJIT-2.1-20140109
gmake TARGET_STRIP=@: CCDEBUG=-g PREFIX=/usr/local/openresty/luajit
==== Building LuaJIT 2.1.0-alpha ====
gmake -C src
gmake[1]: gcc: Command not found
gmake[1]: Entering directory `/usr/home/lhm/ngx_openresty-1.5.8.1/build/LuaJIT-2.1-20140109/src'
gmake[1]: gcc: Command not found
gmake[1]: gcc: Command not found
gmake[1]: gcc: Command not found
gmake[1]: gcc: Command not found
gmake[1]: gcc: Command not found
Makefile:228: *** Unsupported target architecture. Stop.
gmake[1]: Leaving directory `/usr/home/lhm/ngx_openresty-1.5.8.1/build/LuaJIT-2.1-20140109/src'
gmake: *** [default] Error 2
ERROR: failed to run command: gmake TARGET_STRIP=@: CCDEBUG=-g PREFIX=/usr/local/openresty/luajit
使用./configure --with-cc=/usr/bin/cc
出现如下错误,但可以成功
cc: error: unsupported option '-dumpspecs'
cc: error: no input files
cc: warning: argument unused during compilation: '-fPIC'
cc: warning: argument unused during compilation: '-fomit-frame-pointer'
cc: warning: argument unused during compilation: '-Wall'
cc: warning: argument unused during compilation: '-D _FILE_OFFSET_BITS=64'
cc: warning: argument unused during compilation: '-D _LARGEFILE_SOURCE'
cc: warning: argument unused during compilation: '-U _FORTIFY_SOURCE'
cc: warning: argument unused during compilation: '-D LUA_ROOT="/usr/local/openresty/luajit"'
cc: warning: argument unused during compilation: '-D LUA_MULTILIB="lib"'
cc: warning: argument unused during compilation: '-fomit-frame-pointer'
cc: warning: argument unused during compilation: '-Wall'
cc: warning: argument unused during compilation: '-D _FILE_OFFSET_BITS=64'
cc: warning: argument unused during compilation: '-D _LARGEFILE_SOURCE'
cc: warning: argument unused during compilation: '-U _FORTIFY_SOURCE'
cc: warning: argument unused during compilation: '-D LUA_ROOT="/usr/local/openresty/luajit"'
cc: warning: argument unused during compilation: '-D LUA_MULTILIB="lib"'
ldconfig: illegal option -- n
usage: ldconfig [-32] [-aout | -elf] [-Rimrsv] [-f hints_file] [directory | file ...]
/usr/bin/cc -v
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd10.0
Thread model: posix
可以看出,这个/usr/bin/cc是Clang
春哥,看看上述错误有啥影响,能修正一下不?