[uClibc]Use of __attribute__((constructor))
Joseph Chiu
josephc at idealab.com
Fri Aug 9 00:51:51 UTC 2002
Hi,
I tried to put together the procps-2.0.7-6 package (procps.sourceforge.net)
to put together a "real" ps.
The procps package uses the __attribute__((constructor)) for a handful of
static functions obviously used to automatically run initialization.
With uclibc, this automatic behavior does not occur. I don't know if this
is a big problem or a little problem; but I thought I'd mention this here.
The workaround in the procps package is easy enough -- I just un-static'd
the initializer functions, and called them at the start of main(). (I
actually wanted top, but gave up because of the need for curses, but that's
another story).
Thanks,
Joseph
--
Joseph Chiu, Developer, idealab!
josephc at idealab.com (626) 535-2819
It's a small change... what could possibly go wR.u6$
More information about the uClibc
mailing list