@samitouri / QOSamiQemu / commits / 19db5c1daf

configure: honor --extra-ldflags when forced to use objc_LINKER

3220b38a8d had the side effect of making the individual target link steps use objc_LINKER on macOS, because `coreaudio.m` became visible to Meson as a source file. (The preexisting presence of `cocoa.m` is masked by the fact that it gets built into libsystem and then extracted back out as an object file.) `configure` correctly passes `$EXTRA_LDFLAGS` to the "C linker" and "C++ linker", but it neglected to do so for the "Objective-C linker". Fix that. Signed-off-by: Matt Jacobson <mhjacobson@me.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Message-ID: <20260615045547.23422-1-mhjacobson@me.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>

Matt Jacobson committed Jun 15, 2026 at 00:55 UTC 19db5c1daf0024219718e1595a3d781f58747d72
1 file changed +1
configure
+1
@@ -1849,6 +1849,7 @@ if test "$skip_meson" = no; then
1849 test -n "$objcc" && echo "objc_args = [$(meson_quote $OBJCFLAGS $EXTRA_OBJCFLAGS)]" >> $cross
1850 echo "c_link_args = [$(meson_quote $CFLAGS $LDFLAGS $EXTRA_CFLAGS $EXTRA_LDFLAGS)]" >> $cross
1851 echo "cpp_link_args = [$(meson_quote $CXXFLAGS $LDFLAGS $EXTRA_CXXFLAGS $EXTRA_LDFLAGS)]" >> $cross
1852 + test -n "$objcc" && echo "objc_link_args = [$(meson_quote $OBJCFLAGS $LDFLAGS $EXTRA_OBJCFLAGS $EXTRA_LDFLAGS)]" >> $cross
1853
1854 # Only enable by default for git builds and on select OSes
1855 echo "# environment defaults, can still be overridden on " >> $cross