mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-22 09:27:32 -08:00
Thanks to Ștefan Talpalaru <stefantalpalaru@yahoo.com> for his notes in the bump bug. Closes: https://bugs.gentoo.org/542672 Closes: https://bugs.gentoo.org/766914 Closes: https://bugs.gentoo.org/890953 Signed-off-by: Sam James <sam@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/29407 Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
17 lines
711 B
Diff
17 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')
|