Regard cross-compilation of libFlac in arm7
===

I have been trying to compile libFlac for arm7 architecture, however I am getting some errors in terms of binding the library properly.

Below is the configure which I am using to compile the sourcecode


> ./configure --host=arm-apple-darwin10
> CFLAGS="-I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/include
> -I/Library/iPhone/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk"
> CC=arm-apple-darwin10-llvm-gcc-4.2 CPP=cpp LDFLAGS="-isysroot
> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk"
> --disable-debug --disable-ogg --disable-asm-optimizations

After running the make I get this error though:

> ld: warning: -force_cpusubtype_ALL will become unsupported for ARM
> architectures ld: warning: ignoring file /usr/lib/dylib1.o, missing
> required architecture arm in file ld: warning: ignoring file
> /usr/lib/libm.dylib, missing required architecture arm in file ld:
> warning: ignoring file /usr/lib/libgcc_s.1.dylib, missing required
> architecture arm in file ld: warning: ignoring file
> /usr/lib/libSystem.dylib, missing required architecture arm in file
> ld: symbol dyld_stub_binding_helper not found, normally in
> crt1.o/dylib1.o/bundle1.o for architecture arm

Would anyone happen to know as of why this is happening though? Certainly this looks like more of a linkage error, and I am not sure how should I go forward with this.

Thanks

