immortalwrt/package/lean/wxbase/patches/fix-install-pointer.patch
ElonH ae656bb0d8
wxbase: invert is_installed
this_prefix has been given in wx-config,
so the result of is_installed isn't proper
```
if is_installed; then
    _include_cppflags="-I${includedir}/wx-2.8"
else
    _include_cppflags="-I${includedir} -I${prefix}/contrib/include"
fi
```
2020-04-04 16:13:27 +08:00

14 lines
357 B
Diff

diff --git a/wx-config.in b/wx-config.in
index b185bbb..0a9a341 100755
--- a/wx-config.in
+++ b/wx-config.in
@@ -937,7 +937,7 @@ fi
is_monolithic() { [ "x@MONOLITHIC@" = "x1" ]; }
is_static() { [ -n "$this_linkage" ]; }
-is_installed() { [ -z "$this_prefix" ]; }
+is_installed() { [ "$this_prefix" ]; }
# Is the user after a support utility?