VirtualBox

Ignore:
Timestamp:
Nov 9, 2015 11:33:41 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103992
Message:

bugref:8087: Additions/x11: support non-root X server: revert r103927 (when our OpenGL library is loaded directly on Linux ... the constructor needs to be called ...): we do not need a constructor for libGL.so.1, as the entry point is called explicitly in all relevant places. In fact, it was not even set up due to a bad preprocessor conditional.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/load.c

    r58584 r58614  
    11111111 */
    11121112bool
    1113 #if defined(LINUX) && !defined(VBOXOGL_FAKEDRI)
    1114 __attribute__ ((constructor))
    1115 #endif
    11161113stubInit(void)
    11171114{
     
    11291126/* Sigh -- we can't do initialization at load time, since Windows forbids
    11301127 * the loading of other libraries from DLLMain. */
    1131 
    1132 #ifdef LINUX
    1133 /** @todo remove this, but only once we are sure it is not needed. */
    1134 /* GCC crap
    1135  *void (*stub_init_ptr)(void) __attribute__((section(".ctors"))) = __stubInit; */
    1136 #endif
    11371128
    11381129#ifdef WINDOWS
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette