diff options
author | Frederik Schwan | 2022-02-17 00:56:55 +0000 |
---|---|---|
committer | Frederik Schwan | 2022-02-17 00:56:55 +0000 |
commit | c83264ba775af59e022baad5a2d888645b972393 (patch) | |
tree | 4cfa30ca0c1e70c9fb66f2494b227305e70b5cbe | |
parent | 04d409d3b616fe090e6768373340f19248780400 (diff) | |
download | aur-c83264ba775af59e022baad5a2d888645b972393.tar.gz |
fix gcc error
Due to multiple consecutive whitespaces in our CFLAGS variable,
the gradle function introduced to parse these options failed
and added whitespaces as arguments. This made gcc fail with messages
like
```
gcc: warning: : linker input file unused because linking not done
gcc: error: : linker input file not found: No such file or directory
```
Creds @loqs for finding the root cause of this.
Fixed by replacing multiple consecutive whitespaces within the
parsing code in gradle
-rw-r--r-- | java-openjfx-flags.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java-openjfx-flags.patch b/java-openjfx-flags.patch index fb01ebeb8ec9..e6c4b2adab01 100644 --- a/java-openjfx-flags.patch +++ b/java-openjfx-flags.patch @@ -22,7 +22,7 @@ index 7a7cbc72..6705a0f3 100644 + "-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").trim().replaceAll(" +", " ").split(" ")) + if (!IS_64) { commonFlags += "-m32" |