Alan Coopersmith wrote:
>
> *sigh*   MakeAtom is one of a bunch of symbols in libXfont that are 
> supposed to be weak symbols so that they aren't used if a real 
> definition is in place, but
> they're only marked weak with gcc attributes, not Sun cc pragmas.
>
FWIW, the StudioExpress February early access release does support
the gcc attribute syntax:

$ cc -V
cc: Sun C 5.9 SunOS_i386 Build40_1 2007/02/08
usage: cc [ options] files.  Use 'cc -flags' for details
$ cat test.c
#define weak __attribute__((weak))

typedef void * Atom;

weak Atom
MakeAtom(char *string, unsigned len, int makeit)
{
        return ((Atom) string);
}
$ cc -c test.c
$ nm test.o | grep MakeAtom
[14]    |         0|        21|FUNC |WEAK |0    |2      |MakeAtom
$




Reply via email to