head 1.2; access; symbols pkgsrc-2019Q2:1.1.0.6 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.4 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.2 pkgsrc-2018Q4-base:1.1; locks; strict; comment @// @; 1.2 date 2019.08.21.13.35.29; author nia; state dead; branches; next 1.1; commitid QbuTYFguNT3eMTzB; 1.1 date 2018.10.07.23.49.31; author ryoon; state Exp; branches; next ; commitid BBhwQOLTmS4So5VA; desc @@ 1.2 log @Move graphics/MesaLib18 to graphics/MesaLib. Move graphics/MesaLib to graphics/MesaLib11. @ text @$NetBSD: patch-src_compiler_glsl_glsl__parser__extras.cpp,v 1.1 2018/10/07 23:49:31 ryoon Exp $ atexit() is not a good idea in a library; use destructor attribute. --- src/compiler/glsl/glsl_parser_extras.cpp.orig 2017-09-25 16:56:18.000000000 +0000 +++ src/compiler/glsl/glsl_parser_extras.cpp @@@@ -2224,7 +2224,11 @@@@ extern "C" { * programs would be invalid. So this should happen at approximately * program exit. */ +#if defined(HAVE_NOATEXIT) +void __attribute__((__destructor__)) +#else void +#endif _mesa_destroy_shader_compiler(void) { _mesa_destroy_shader_compiler_caches(); @ 1.1 log @graphics/MesaLib18: import MesaLib-18.2.0 from wip/MesaLib MesaLib is a 3-D graphics library with an API which is very similar to that of OpenGL*. To the extent that Mesa utilizes the OpenGL command syntax or state machine, it is being used with authorization from Silicon Graphics, Inc. However, the author makes no claim that Mesa is in any way a compatible replacement for OpenGL or associated with Silicon Graphics, Inc. @ text @d1 1 a1 1 $NetBSD: patch-src_compiler_glsl_glsl__parser__extras.cpp,v 1.1 2016/04/17 00:03:00 wiz Exp $ @