osx - Set CMake to use dyld options instead GNU ld options under OS X -
i try to port linux software os x (yosemite) uses cmake built. modification made, direct homebrew installed gnu gcc , g++ when executing cmake
.
if use existing cmakelists.txt, build process stops following error:
ld: unknown option: --start-group collect2: error: ld returned 1 exit status make[2]: *** [lib/somelib.dylib] error 1 make[1]: *** [lib/somelib.dir/all] error 2 make: *** [all] error 2
obviously --start-group
option gnu ld , not dyld, os x ld derivate. installing gnu ld on os x not possible, answered here.
how can set cmake use dyld options instead?
Comments
Post a Comment