Skip to content

Commit 81679cd

Browse files
authored
Merge pull request #113 from tobil4sk/fix/linker-error
Fix linker error with some wx installs
2 parents 39a7aa6 + 642ace9 commit 81679cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/wx/widgets/EntryMacro.hx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import sys.FileSystem;
88
import sys.io.File;
99
import sys.io.Process;
1010

11+
using StringTools;
12+
1113
typedef OSVersion = {
1214
var major:Int;
1315
var minor:Int;
@@ -65,7 +67,7 @@ class EntryMacro {
6567
};
6668

6769
var config = new Process("wx-config", ["--cxxflags"]);
68-
var cflags = config.stdout.readAll().toString().split("\n")[0].split(" ").map(makeFlag).join("\n");
70+
var cflags = config.stdout.readAll().toString().rtrim().split(" ").map(makeFlag).join("\n");
6971
config.exitCode();
7072

7173
#if WEBVIEW

0 commit comments

Comments
 (0)