分类: LINUX
2007-08-29 14:31:01
net-snmp 5.1.2 building options should be
CFLAGS="-isystem /usr/local/arm/3.0/arm-linux/include"
CPPFLAGS="-isystem /usr/local/arm/3.0/arm-linux/include"
./configure --target=arm-linux --host=arm --build=i686
--with-cc=arm-linux-gcc --with-ar=arm-linux-ar
--with-endianness=little
--prefix=/usr --exec-prefix=/usr --with-install-prefix=/nfsroot
******to build everything
CFLAGS="-isystem/usr/local/arm/3.0/arm-linux/include"
CPPFLAGS="-isystem/usr/local/arm/3.0/arm-linux/include"
./configure --target=arm-linux --host=arm --build=i686
--with-cc=arm-linux-gcc --with-ar=arm-linux-ar
--with-endianness=little
--disable-applications --disable-manuals --disable-scripts
--enable-mini-agent --prefix=/usr --exec-prefix=/usr
--with-install-prefix=/nfsroot
*******for the mini-agent
CFLAGS="-isystem /usr/local/arm/3.0/arm-linux/include"
CPPFLAGS="-isystem /usr/local/arm/3.0/arm-linux/include"
./configure --target=arm-linux --host=arm --build=i686
--with-cc=arm-linux-gcc --with-ar=arm-linux-ar
--with-endianness=little
--disable-applications --disable-manuals --disable-scripts
--prefix=/usr
--exec-prefix=/usr --with-install-prefix=/nfsroot
******for the standard agent
--prefix and --exec-prefix means that net-snmp will be located in /usr
of your embedded device ,the difference between both is that one is for share component and the
other for specific device i guess