logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git

meson-0.55.3_posix_getopt.patch (1039B)


  1. commit d679381d2815da4ebc33cdec9600f8a1b3fb2428
  2. Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  3. Date: 2020-11-01T03:08:16 GMT
  4. dependencies: Put pkgconfig options before operands
  5. This fixes building with meson when the POSIX behavior of getopt is used, such as when GNU libc is used with POSIXLY_CORRECT=1 defined
  6. diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py
  7. index 3a5f5f8..0592da7 100644
  8. --- a/mesonbuild/dependencies/base.py
  9. +++ b/mesonbuild/dependencies/base.py
  10. @@ -869,9 +869,11 @@ class PkgConfigDependency(ExternalDependency):
  11. def _set_libs(self):
  12. env = None
  13. - libcmd = [self.name, '--libs']
  14. if self.static:
  15. - libcmd.append('--static')
  16. + libcmd = ['--libs', '--static', self.name]
  17. + else:
  18. + libcmd = ['--libs', self.name]
  19. +
  20. # Force pkg-config to output -L fields even if they are system
  21. # paths so we can do manual searching with cc.find_library() later.
  22. env = os.environ.copy()