remove vestiges of -prebind magic
since commit 22edeb3f4 (private; anno 2002), the generator would extract -prebind and translate it into a PREBINDING property in the pbx file. the writeout to the pbx file got lost in the rewrite for Xcode 3.2 (commit 66f6e5b1; anno 2012). this isn't particularly bad, as prebinding is obsolete since OS X 10.3.4. we now go the last mile and remove the handling of the flag. that means that remaining projects which still use it (meaninglessly) will get a warning from Xcode, which is kinda what we want. QMAKE_LFLAGS should have never been part of the library iteration loop. it was added there in the prebind handling commit, so we can get rid of it again now. Change-Id: Id7dee2b1e248bb2bd7aa7a3e66f82057921afffd Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
This commit is contained in:
parent
bcf3a3c113
commit
8e797477b9
@ -810,7 +810,7 @@ ProjectBuilderMakefileGenerator::writeMakeParts(QTextStream &t)
|
|||||||
if(!project->isActiveConfig("staticlib")) { //DUMP LIBRARIES
|
if(!project->isActiveConfig("staticlib")) { //DUMP LIBRARIES
|
||||||
ProStringList &libdirs = project->values("QMAKE_PBX_LIBPATHS"),
|
ProStringList &libdirs = project->values("QMAKE_PBX_LIBPATHS"),
|
||||||
&frameworkdirs = project->values("QMAKE_FRAMEWORKPATH");
|
&frameworkdirs = project->values("QMAKE_FRAMEWORKPATH");
|
||||||
static const char * const libs[] = { "QMAKE_LFLAGS", "QMAKE_LIBS", "QMAKE_LIBS_PRIVATE", 0 };
|
static const char * const libs[] = { "QMAKE_LIBS", "QMAKE_LIBS_PRIVATE", 0 };
|
||||||
for (int i = 0; libs[i]; i++) {
|
for (int i = 0; libs[i]; i++) {
|
||||||
tmp = project->values(libs[i]);
|
tmp = project->values(libs[i]);
|
||||||
for(int x = 0; x < tmp.count();) {
|
for(int x = 0; x < tmp.count();) {
|
||||||
@ -821,9 +821,6 @@ ProjectBuilderMakefileGenerator::writeMakeParts(QTextStream &t)
|
|||||||
QString r = opt.mid(2).toQString();
|
QString r = opt.mid(2).toQString();
|
||||||
fixForOutput(r);
|
fixForOutput(r);
|
||||||
libdirs.append(r);
|
libdirs.append(r);
|
||||||
} else if(opt == "-prebind") {
|
|
||||||
project->values("QMAKE_DO_PREBINDING").append("TRUE");
|
|
||||||
remove = true;
|
|
||||||
} else if(opt.startsWith("-l")) {
|
} else if(opt.startsWith("-l")) {
|
||||||
name = opt.mid(2).toQString();
|
name = opt.mid(2).toQString();
|
||||||
QString lib("lib" + name);
|
QString lib("lib" + name);
|
||||||
|
Loading…
Reference in New Issue
Block a user