Reputation: 8678
I have a cross compiler and I know how to cross compile a file. But I am doing all just for glib compilation that I do not know how to do. Anyone to guide me. or generally just inform me how can I compile a complete library using gcc
Upvotes: 0
Views: 323
Reputation: 944
If the source code of library has a configure script try :
./configure --host=TARGET_PLATFORM
you must have TARGET_PLATFORM gcc installed .
e.g. : target=arm-linux-androideabi , so you should have arm-linux-androideabi-gcc and arm-linux-androideabi-ar & ... in your $PATH
If the source code does not provide 'configure' then export CROSS_COMPILE=TARGET_PLATFORM
.
Upvotes: 1