airserv-ng 在dd-wrt下的编译问题

前提:dd-wrt svn 1.0rc 1. osdep/linux.c下面wiToolsPath() 下面增加/jffs/usr/bin, /jffs/usr/sbin 2. common.mak修改,CC前面增加TOOL_PREFIX = mipsel-linux-uclibc- 修改 CFLAGS = -g -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -Wall -Wunused -I/work/DD-WRT/src/linux/brcm/linux.v23/include -Iinclude/ -fpic 3. 编译要用静态编译:make airserv-ng, 然后mipsel-linux-uclibc-gcc -g -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -Wall -Wunused -I/work/DD-WRT/src/linux/brcm/linux.v23/include -Iinclude/ -fpic -D_FILE_OFFSET_BITS=64 -D_REVISION=`../evalrev` -Iinclude airserv-ng.o common.o -o airserv-ng -Losdep -losdep -static 4. 在dd-wrt上先安装wireless-tools, 然后airserv-ng -d prsim0

你可能感兴趣的:(c,linux,SVN,OS,gcc)