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
This commit is contained in:
Sebastian Sumpf 2023-03-15 15:15:48 +01:00 committed by Christian Helmuth
parent 4b54520579
commit effe17c852

View File

@ -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