Bug #19110 2013-09-05 06:41
mojca
ld: unknown option: --no-undefined
When using
CC=clang CXX=clang++ ../codeblocks/configure
make
on the latest SVN checkout (r9296) on Mac OS X 10.7 with Xcode 4.6 the compilation fails with
ld: unknown option: --no-undefined
As a quick workaround it was sufficient to remove that from LDFLAGS in src/build_tools/autorevision/Makefile (at least until I hit the next compile error).
/bin/sh ../../../libtool --tag=CXX --mode=link clang++ -DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -Wl,--no-undefined -o auto_revision auto_revision-autorevision.o ../../base/tinyxml/libtinyxml.la
libtool: link: clang++ -DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -Wl,--no-undefined -o auto_revision auto_revision-autorevision.o -Wl,-bind_at_load ../../base/tinyxml/.libs/libtinyxml.a
ld: unknown option: --no-undefined
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [auto_revision] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
- Category
- Group
- Platform:Mac
- Status
- Open
- Close date
- Assigned to