when i try to build a simple app qbs invokes the linker with options: (some stripped)
/usr/bin/clang++ objFilesListStripped -m64 -g -Wall -Wextra '-Wl,-rpath,/home/ds/qt5/qtbase/lib,-rpath,$ORIGIN' -L/home/ds/qt5/qtbase/lib -l -l -l -l -l -l -l -Wl,--unresolved-symbols=ignore-in-shared-libs -o outPathHere
The weird parts are: 
First, the string '-Wl,-rpath,/home/ds/qt5/qtbase/lib,-rpath,$ORIGIN' for some reason in quotation marks. 
Second, the list of empty libraries -l -l -l -l
the qbs file is:
import qbs
QtGuiApplication {
	name: "Test"
	files: [hereWasListOfInputs]
	Properties {
		condition: qbs.buildVariant == "debug"
		cpp.defines: ["DEBUG"]
		Qt.quick.qmlDebugging: true
	}
	Properties {
		condition: qbs.buildVariant == "release"
		cpp.optimization: "fast"
	}
	//cpp.cxxLanguageVersion : "c++14" //doesnt work for some reason. 
 	cpp.cppFlags: "-std=c++14"  // this works though
	cpp.cxxPrecompiledHeader: "src/precomp.h"
	Depends { name: "Qt"; submodules: ["quick", "svg"] }
}
| For Gerrit Dashboard: QBS-873 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 168467,3 | ModUtils: Filter out empty strings from string lists | master | qbs/qbs | Status: MERGED | +2 | 0 | 
 Not Evaluated
  Not Evaluated