Are these also called for shared libraries? George.
On Wed, Jul 16, 2014 at 3:36 PM, Paul Hargrove <phhargr...@lbl.gov> wrote: > > On Wed, Jul 16, 2014 at 7:36 AM, Nathan Hjelm <hje...@lanl.gov> wrote: > >> Correction. xlc does support the destructor function attribute. The odd >> one out is PGI. >> > > Are the Solaris Studio compilers still of interest to the Open MPI > community? > If so, I've confirmed support using the following 5-line test on a > Solaris-10/SPARC platform. > > #include <stdio.h> > int X = 0; > __attribute__((__constructor__)) void hello(void) { X = 42; } > __attribute__((__destructor__)) void goodbye(void) { printf("X = %d\n", > X); } > int main(void) { return 0; } > > > > -Paul > > > > > -- > Paul H. Hargrove phhargr...@lbl.gov > Future Technologies Group > Computer and Data Sciences Department Tel: +1-510-495-2352 > Lawrence Berkeley National Laboratory Fax: +1-510-486-6900 > > _______________________________________________ > devel mailing list > de...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel > Link to this post: > http://www.open-mpi.org/community/lists/devel/2014/07/15183.php >