Cross compiling bluez-2.25 statically

These are the steps I used to cross-compile bluez-2.25 for ARM:

export CC=/opt/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc  
export GCC=/opt/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
export RANLIB=/opt/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ranlib
export LD=/opt/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ld
export NM=/opt/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-nm
export AS=/opt/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-as
export AR=/opt/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ar

./configure --host=arm-none-linux-gnueabi --libdir=/usr/local/arm/lib --includedir=/usr/local/arm/include/ --enable-shared=no --enable-static=yes 

make
make install

./configure --host=armarm-unknown-linux-gnu --libdir=/usr/local/arm/lib --includedir=/usr/local/arm/include/ --with-bluez=/usr/local/arm LDFLAGS=-L"/usr/local/arm/lib" CFLAGS="--static" --enable-bccmd --disable-glib --disable-audio --enable-tools
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s