From effe17c852cf8af68f58dae95e3ed67cb9f15561 Mon Sep 17 00:00:00 2001 From: Sebastian Sumpf Date: Wed, 15 Mar 2023 15:15:48 +0100 Subject: [PATCH] qt5_component: add 'main' as undefined to ABI This causes the 'main' function to not be garbage collected when linking against the ABI. issue #4794 --- repos/libports/lib/symbols/qt5_component | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/repos/libports/lib/symbols/qt5_component b/repos/libports/lib/symbols/qt5_component index df6c65967f..1cca0cd631 100644 --- a/repos/libports/lib/symbols/qt5_component +++ b/repos/libports/lib/symbols/qt5_component @@ -1 +1,7 @@ _ZN4Libc9Component9constructERNS_3EnvE T +# +# Make sure there is an undefined reference to "main". Because Qt5 apps don't +# link the posix library (where main is also undefined), we need this so "main" +# does not get garbage collected during linking. +# +main U