compiling sdl_ttf

Gaurav
Has anyone tried compiling sdl_ttf for mini2440 before? 

I have both SDL and freetype compiled without error. I am getting error
while compiling sdl_ttf though. 

*)Freetype:
I have it installed in the folder: /home/gk/Desktop/temp
The folders bin, include and lib are in this directory

*)SDL:

I have it installed in the folder: /home/gk/Desktop/temp/SDL
Include files are in folder include/SDL and libraries in lib directory in
this folder (i.e. /home/gk/Desktop/temp/SDL).


*) SDL_ttf:

The configuration I am setting up is: 

./configure --host=arm-linux  --prefix=/home/gk/Desktop/temp/
--with-sdl-prefix=/home/gk/Desktop/temp/
--with-freetype-prefix=/home/gk/Desktop/temp 
CPPFLAGS="-I/home/gk/Desktop/temp/include/freetype2
-I/home/gk/Desktop/temp/SDL/include/" LDFLAGS="-L/home/gk/Desktop/temp/lib
-L/home/gk/Desktop/temp/SDL/lib"

After this when I issue make I am getting following error:
/home/gk/Documents/study/sdl/SDL_ttf-2.0.11/showfont.c:332: undefined
reference to `SDL_GetError'
/home/gk/Documents/study/sdl/SDL_ttf-2.0.11/showfont.c:192: undefined
reference to `SDL_GetError'
/home/gk/Documents/study/sdl/SDL_ttf-2.0.11/showfont.c:220: undefined
reference to `SDL_GetError'
./.libs/libSDL_ttf.so: undefined reference to `ceilf'
./.libs/libSDL_ttf.so: undefined reference to `SDL_SetError'
./.libs/libSDL_ttf.so: undefined reference to `SDL_CreateRGBSurface'
collect2: ld returned 1 exit status
make: *** [showfont] Error 1


Help will be greatly appreciated. Thanks in advance!