|
|
@ -348,7 +348,16 @@ public: |
|
|
|
if(!found) return false; |
|
|
|
if(!found) return false; |
|
|
|
conf->addLib(QString("-L") + s); |
|
|
|
conf->addLib(QString("-L") + s); |
|
|
|
} |
|
|
|
} |
|
|
|
//conf->addLib("-ltorrent"); |
|
|
|
// BUGFIX for Fedora (doesn't support pkg-config?) |
|
|
|
|
|
|
|
QFile issue_file("/etc/issue"); |
|
|
|
|
|
|
|
if(issue_file.open(QIODevice::ReadOnly | QIODevice::Text)){ |
|
|
|
|
|
|
|
QString content = issue_file.readAll(); |
|
|
|
|
|
|
|
issue_file.close(); |
|
|
|
|
|
|
|
if(content.indexOf("Fedora") != -1){ |
|
|
|
|
|
|
|
qWarning("Fedora detected. WORKAROUND for Fedora pkg-config problem enabled"); |
|
|
|
|
|
|
|
conf->addLib("-lssl -lcrypto -lboost_date_time -lboost_filesystem -lboost_thread -lz -ltorrent"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
@ -470,7 +479,16 @@ public: |
|
|
|
if(!found) return false; |
|
|
|
if(!found) return false; |
|
|
|
conf->addLib(QString("-L") + s); |
|
|
|
conf->addLib(QString("-L") + s); |
|
|
|
} |
|
|
|
} |
|
|
|
//conf->addLib("-lccext2 -lccgnu2"); |
|
|
|
// BUGFIX for Fedora (doesn't support pkg-config?) |
|
|
|
|
|
|
|
QFile issue_file("/etc/issue"); |
|
|
|
|
|
|
|
if(issue_file.open(QIODevice::ReadOnly | QIODevice::Text)){ |
|
|
|
|
|
|
|
QString content = issue_file.readAll(); |
|
|
|
|
|
|
|
issue_file.close(); |
|
|
|
|
|
|
|
if(content.indexOf("Fedora") != -1){ |
|
|
|
|
|
|
|
qWarning("Fedora detected. WORKAROUND for Fedora pkg-config problem enabled"); |
|
|
|
|
|
|
|
conf->addLib("-pthread -lccext2 -lz -lccgnu2 -ldl -lrt"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|