diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-06 19:06:26 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-06 19:06:26 +0000 |
commit | f8f68d6f93dd8510c09261f47d4f64cadf303815 (patch) | |
tree | 2d317143f2696b93a06c8d26452ea901a1f2fd74 /dev-java/openjfx/files/11/strip-blank-elements-flags.patch | |
parent | 0113c4c9eb49e26aee006787c9564c1165909926 (diff) |
gentoo auto-resync : 06:03:2024 - 19:06:26
Diffstat (limited to 'dev-java/openjfx/files/11/strip-blank-elements-flags.patch')
-rw-r--r-- | dev-java/openjfx/files/11/strip-blank-elements-flags.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-java/openjfx/files/11/strip-blank-elements-flags.patch b/dev-java/openjfx/files/11/strip-blank-elements-flags.patch new file mode 100644 index 000000000000..87f0279979f7 --- /dev/null +++ b/dev-java/openjfx/files/11/strip-blank-elements-flags.patch @@ -0,0 +1,29 @@ +Without this, you'll get bizarre errors where linking fails because it looks for +a literal "" arg. + +https://bugs.gentoo.org/715092 +https://bugs.gentoo.org/719484 +https://bugs.gentoo.org/799227 +https://bugs.gentoo.org/915727 +--- a/buildSrc/linux.gradle ++++ b/buildSrc/linux.gradle +@@ -47,7 +47,8 @@ def commonFlags = [ + "-Wno-error=cast-function-type", + "-Wextra", "-Wall", "-Wformat-security", "-Wno-unused", "-Wno-parentheses", "-Werror=trampolines"] // warning flags + +-commonFlags.addAll(System.getenv("CFLAGS").trim().split(" ")) ++commonFlags.addAll(System.getenv("CFLAGS").strip().split(" ")) ++commonFlags.removeAll([""]) + + if (!IS_64) { + commonFlags += "-m32" +@@ -75,7 +76,8 @@ def staticLinkFlags = [].flatten() + + def linkFlags = IS_STATIC_BUILD ? staticLinkFlags : dynamicLinkFlags; + +-linkFlags.addAll(System.getenv("LDFLAGS").trim().split(" ")) ++linkFlags.addAll(System.getenv("LDFLAGS").strip().split(" ")) ++linkFlags.removeAll([""]) + + if (IS_DEBUG_NATIVE) { + linkFlags += "-g" |