diff --git a/Makefile.am b/Makefile.am
index c842d5befc1573f4b365a6a3de60b8b998bf4f52..7546cb2a7e9d2f9721b54a4bd6cacd78f2bb3b45 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -241,7 +241,7 @@ endif
 
 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc)
 	@rm -f vlc$(EXEEXT)
-	@case `$(VLC_CONFIG) --linkage $(vlc_config)` in \
+	@case `$(VLC_CONFIG) --linkage vlc builtin` in \
 	  c++) cmd="$(CXXLINK)" ;; \
 	  objc) cmd="$(OBJCLINK)" ;; \
 	  c|*) cmd="$(LINK)" ;; \