Fix qmake build on FreeBSD

In Makefile.unix we have one target with multiple dependencies:
'qlibraryinfo_final.o'.  The macro $< is expanded to the first
dependency in GNU Make.  In BSD Make, this macro expands to nothing
if there's more than one dependency.

Fix this by using the explicit path to the source file for this one
target.

Fixes: QTBUG-65425
Change-Id: Ib51f5f181b670e5533d22ce546fce9a20a649a27
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Joerg Bornemann 2022-04-20 11:15:43 +02:00
parent d7799056fc
commit eb2dc49264
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ qlibraryinfo.o: $(SOURCE_PATH)/src/corelib/global/qlibraryinfo.cpp
$(CXX) -c -o $@ $(CXXFLAGS) -DQT_BUILD_QMAKE_BOOTSTRAP $<
qlibraryinfo_final.o: $(SOURCE_PATH)/src/corelib/global/qlibraryinfo.cpp $(BUILD_PATH)/src/corelib/global/qconfig.cpp
$(CXX) -c -o $@ $(CXXFLAGS) $<
$(CXX) -c -o $@ $(CXXFLAGS) $(SOURCE_PATH)/src/corelib/global/qlibraryinfo.cpp
qnumeric.o: $(SOURCE_PATH)/src/corelib/global/qnumeric.cpp
$(CXX) -c -o $@ $(CXXFLAGS) $<