forked from herpoi/neutrino-mp-cst-next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cross-configure.cool
executable file
·31 lines (23 loc) · 1.03 KB
/
cross-configure.cool
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
PREFIX=/opt/arm/arm-cx2450x-linux-gnueabi/arm-cx2450x-linux-gnueabi/sys-root/usr
CCPATH=
HOST=arm-cx2450x-linux-gnueabi
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
export CC=$CCPATH$HOST-gcc
export AR=$CCPATH$HOST-ar
export NM=$CCPATH$HOST-nm
export RANLIB=$CCPATH$HOST-ranlib
export OBJDUMP=$CCPATH$HOST-objdump
export STRIP=$CCPATH$HOST-strip
export CFLAGS="-Wall -Werror -g0 -O2 -fno-strict-aliasing \
-D__KERNEL_STRICT_NAMES -DUSE_NEVIS_GXA \
-I"$PWD"/include -I"$PWD"/include/linux/dvb -I"$PREFIX"/include/freetype2"
export CXXFLAGS="-Wall -Werror -g0 -O2 -fno-strict-aliasing \
-D__KERNEL_STRICT_NAMES -DUSE_NEVIS_GXA \
-I"$PWD"/include -I"$PWD"/include/linux/dvb -I"$PREFIX"/include/freetype2"
export LDFLAGS="-L"$PREFIX"/lib -lcurl -lssl -lcrypto -ldl"
export DVB_API_VERSION=3
export FREETYPE_CONFIG=$PREFIX/bin/freetype-config
export CURL_CONFIG=$PREFIX/bin/curl-config
./autogen.sh
./configure --prefix=${PREFIX} --build=i386-pc-linux-gnu --host=$HOST --enable-flac --with-target=cdk --with-targetprefix="" "$*"