We need -L for system libraries after the -L values of internal libraries in order to let the build work reliable. So we should move -L from LINKFLAGS_PYEMBED to LIBPATH_PYEMBED.
Created attachment 13115 [details] Possible patch for master
Created attachment 13116 [details] Possible patch for v4-6-test (without cherry-pick info yet)
Created attachment 13131 [details] Patch for v4-6-test
Comment on attachment 13131 [details] Patch for v4-6-test LGTM. Thanks.
Pushed to autobuild-v4-6-test.
(In reply to Karolin Seeger from comment #5) Pushed to v4-6-test. Closing out bug report. Thanks!