Index: Makefile.in
--- Makefile.in.orig	2022-12-18 08:33:30.000000000 +0100
+++ Makefile.in	2022-12-19 22:51:23.481419000 +0100
@@ -1087,13 +1087,13 @@
 
 bin/dcraw_half$(EXEEXT): $(bin_dcraw_half_OBJECTS) $(bin_dcraw_half_DEPENDENCIES) $(EXTRA_bin_dcraw_half_DEPENDENCIES) bin/$(am__dirstamp)
 	@rm -f bin/dcraw_half$(EXEEXT)
-	$(AM_V_CCLD)$(LINK) $(bin_dcraw_half_OBJECTS) $(bin_dcraw_half_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(CXXLINK) $(bin_dcraw_half_OBJECTS) $(bin_dcraw_half_LDADD) $(LIBS)
 samples/bin_half_mt-half_mt.$(OBJEXT): samples/$(am__dirstamp) \
 	samples/$(DEPDIR)/$(am__dirstamp)
 
 bin/half_mt$(EXEEXT): $(bin_half_mt_OBJECTS) $(bin_half_mt_DEPENDENCIES) $(EXTRA_bin_half_mt_DEPENDENCIES) bin/$(am__dirstamp)
 	@rm -f bin/half_mt$(EXEEXT)
-	$(AM_V_CCLD)$(bin_half_mt_LINK) $(bin_half_mt_OBJECTS) $(bin_half_mt_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(CXXLINK) $(bin_half_mt_OBJECTS) $(bin_half_mt_LDADD) $(LIBS)
 samples/bin_mem_image-mem_image_sample.$(OBJEXT):  \
 	samples/$(am__dirstamp) samples/$(DEPDIR)/$(am__dirstamp)
 
