[Bf-committers] OSX Mavericks 10.9 (mostly) success
Jens Verwiebe
info at jensverwiebe.de
Tue Sep 10 23:11:11 CEST 2013
Hi Jake
I investigated the ndof thingie and found following situation.
It seems that with clang, setting attributes leads to producing mangled additional (c++-)symbols:
$ clang++33 -c test.cc
$ objdump -t test.o | fgrep foo
0000000000000010 l F .text 0000000000000006 _Z3foov
0000000000000000 *UND* 0000000000000000 foo
$ g++48 -c test.cc
$ objdump -t test.o | fgrep foo
0000000000000000 l F .text 0000000000000006 foo
..not exactly our problem, but i think the same outcome.
I formerly simple circumvented this by just compiling ghost with llvm-gcc ( exception ).
For XCode5 dropped llvm-gcc complete, we are pushed to another solution, which could be
Instead of using __attribute__((weak_import)) inside an extern "C" declaration, we
should move these availablility checks to a discrete c file.
I read clang trunk may already have a fix, whereas other say the issue still occures with -O2.
My conclusion: lest check if a discrete C format file works here. Not too complcated.
Can you or Mike try? I'am a bit short with time nowadays ...
Cheers ...Jens
_____________________________________
Jens Verwiebe
Allerskehre 44 - 22309 Hamburg
Tel.: +49 40 68 78 50
mobil: +49 172 400 49 07
mailto: info at jensverwiebe.de
web: http://www.jensverwiebe.de
_____________________________________
More information about the Bf-committers
mailing list