##  hostapd build options
##
##  current version 2.5
##
##  hostapd_dot_config is the current compile options
##    Copy this file to hostapd/.config before compiling


#tce-load -i compile-essentials binutils libnl-dev openssl-dev pkg-config
tce-load -i compiletc.tcz libnl-dev openssl-dev pkg-config


export CFLAGS="-O2 -pipe -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp"
export CXXFLAGS="-O2 -pipe -fno-exceptions -fno-rtti -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig

cd hostapd-2.5/hostapd/
cp ../../hostapd_dot_config .config
make -j4
strip hostapd
strip hostapd_cli
