Re: -fno-leading-underscore
site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com Godfrey On Nov 16, , at 13:53, Michael Hogsett wrote: The -fno-leading-underscore to GCC appears to have no effect. We have some lisp code which calls foreign functions. The foreign function calls fail because all of the symbols have an underscore prepended to their name. e.g. [dh-7-13] [hogsett] [~] --> gcc -fno-leading-underscore -c -o foo.o foo.c [dh-7-13] [hogsett] [~] --> nm foo.o 0000003c b _b.0 00000000 T _foo [dh-7-13] [hogsett] [~] --> gcc -c -o foo.o foo.c [dh-7-13] [hogsett] [~] --> nm foo.o 0000003c b _b.0 00000000 T _foo How do I resolve this other than rewriting our lisp code? This does not occur on Solaris, Linux, or FreeBSD. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I'm missing something. Wouldn't it be a whole lot easier to change the lisp code that calls a foreign function to prepend an '_' than it is to recompile every thing you ever attempt to call. wouldn't that mean that you can never access any system libraries? That seems somewhat limiting. - Mike This email sent to site_archiver@lists.apple.com
participants (1)
-
Godfrey van der Linden