cross compile GSL library to BB -xM??

how to compile GSL library for beagleboard-xm ?

I’ve done this:

  1. I’m using this toolchain: arm-linux-gnueabihf
  2. I installed GSL library in ubuntu 12.04:
    ./configure
    make
    make install
  3. I’m trying to cross-compile the GSL library:

make clean
./configure --host=arm-linux-gnueabihf --prefix=/usr/arm-linux-gnueabihf
make HOST_CC=“gcc -m32” CROSS=arm-linux-gnueabihf
make install PREFIX=/usr/arm-linux-gnueabihf

  1. When I’m building my project in eclipse, i don’t get error, but when i run the executable on the beagle, i’m getting: “Segmentation error”

  2. I guess that i have a problem when cross-compile the library, i’m not sure about arguments in configure and make command :S

Can somebody help me???