workaround for --export-dynamic in gtkglext
[xonotic/netradiant.git] / SConstruct
index 9dfda4b2e7e4a15ee3557fdca5f0e2040bda5875..09573d22cd8a3ac813dd902e1176ae8855cf7d48 100644 (file)
@@ -255,10 +255,11 @@ class idEnvironment(Environment):
   def useGtkGLExt(self):
     self['CXXFLAGS'] += '`pkg-config gtkglext-1.0 --cflags` '
     self['CCFLAGS'] += '`pkg-config gtkglext-1.0 --cflags` '
   def useGtkGLExt(self):
     self['CXXFLAGS'] += '`pkg-config gtkglext-1.0 --cflags` '
     self['CCFLAGS'] += '`pkg-config gtkglext-1.0 --cflags` '
-    if BUILD == 'final':
-      self['LINKFLAGS'] += '-lgtkglext-x11-1.0 -lgdkglext-x11-1.0 '      
-    else:
-      self['LINKFLAGS'] += 'pkg-config gtkglext-1.0 --libs-only-L` `pkg-config gtkglext-1.0 --libs-only-l` '      
+    #if BUILD == 'final':
+    self['LINKFLAGS'] += '-lgtkglext-x11-1.0 -lgdkglext-x11-1.0 '
+    # apparently pkg-config for gtkglext includes --export-dynamic, which b0rks everything.     
+    #else:
+    #  self['LINKFLAGS'] += 'pkg-config gtkglext-1.0 --libs-only-L` `pkg-config gtkglext-1.0 --libs-only-l` '      
     
   def usePNG(self):
     self['CXXFLAGS'] += '`libpng-config --cflags` '
     
   def usePNG(self):
     self['CXXFLAGS'] += '`libpng-config --cflags` '