pentoo-overlay/dev-python/wxpython/files/wxpython-4.2.0-flags.patch
Rick Farina (Zero_Chaos) 7b0fc31f81
wxpython: python 3.12
I migrated python stuff to make pkgcheck happy, three tests fail either
way but that's close enough for me for right now
2024-06-07 08:48:53 -04:00

16 lines
711 B
Diff

--- a/buildtools/config.py
+++ b/buildtools/config.py
@@ -236,9 +236,12 @@ class Configuration(object):
for lst in [self.cflags, self.cxxflags]:
lst.append('-O3')
+ self.cflags += os.environ.get('CFLAGS', '').split()
+ self.cxxflags += os.environ.get('CXXFLAGS', '').split()
+
lflags = self.getWxConfigValue('--libs')
self.MONOLITHIC = (lflags.find("_xrc") == -1)
- self.lflags = lflags.split()
+ self.lflags = lflags.split() + os.environ.get('LDFLAGS', '').split()
self.WXBASENAME = self.getWxConfigValue('--basename')
self.WXRELEASE = self.getWxConfigValue('--release')