quiet / libfec

Clone of Phil Karn's libfec with capability to build on x86-64
116 stars 55 forks source link

configure fails to generate makefile on Mac OS X #2

Open muellermartin opened 8 years ago

muellermartin commented 8 years ago

Compiling libfec on Mac OS 10.11.3 (El Capitan) keeps failing by saying error: unknown target CPU 'i386' when running make after ./configure. I tried to fix that by manually specifing the build target via --build=x86_64 (as I'm running 64-bit architecture and i686 fails with a similar error) when running configure (e.g. ./configure --build=x86_64), but this leads to an error when linking stating ld: unknown option: -soname=libfec.so. By looking at the makefile there seems to be a target for Mac OS (libfec.dylib in line 98), it just does not get triggered. Passing a full tuple like x86_64-apple-darwin to the configure script (e.g. ./configure --build=x86_64-apple-darwin) successfully builds libfec on my machine. I hope this helps other users on Mac OS X as this behaviour is somewhat strange. Maybe the configure script is somehow wrong...

brian-armstrong commented 8 years ago

I have to do the same thing as you. Thanks for pointing this out. It's something that can hopefully be fixed.

beshrkayali commented 8 years ago

Thanks @muellermartin. Successfully built on my el capitan with your tip.

fornof commented 4 years ago

This would be nice if it was in the readme for libfec or in a wiki somewhere