From 698db433d1ecdc0291dd28573b0e118a848c23d1 Mon Sep 17 00:00:00 2001 From: Chloe Bethel Date: Thu, 2 Mar 2023 15:56:56 +0000 Subject: [PATCH] Wait, how did this ever work? --- platform/switch/detect.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platform/switch/detect.py b/platform/switch/detect.py index 33a76e3548b3..72313e1495a0 100644 --- a/platform/switch/detect.py +++ b/platform/switch/detect.py @@ -227,9 +227,7 @@ def configure(env): env.ParseConfig("aarch64-none-elf-pkg-config libwslay --cflags --libs") if not env["builtin_miniupnpc"]: - # No pkgconfig file so far, hardcode default paths. - env.Append(CPPPATH=["/usr/include/miniupnpc"]) - env.Append(LIBS=["miniupnpc"]) + env.ParseConfig("aarch64-none-elf-pkg-config miniupnpc --cflags --libs") # On Linux wchar_t should be 32-bits # 16-bit library shouldn't be required due to compiler optimisations