mirror of https://github.com/qt/qtbase.git
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:
parent
d7799056fc
commit
eb2dc49264
|
@ -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) $<
|
||||
|
|
Loading…
Reference in New Issue