Merge pull request #637 from ROCm-Developer-Tools/add-pthread

Let hipcc link -lpthread -lm by default

[ROCm/hip commit: d6ce39c1b7]
This commit is contained in:
Maneesh Gupta
2018-09-14 13:21:47 +05:30
committed by GitHub
+1 -1
View File
@@ -734,7 +734,7 @@ if ($needLDFLAGS and not $compileOnly) {
}
$CMD .= " $toolArgs";
if ($needLDFLAGS and not $compileOnly and $HIP_PLATFORM eq "clang") {
$CMD .= " -lgcc_s -lgcc";
$CMD .= " -lgcc_s -lgcc -lpthread -lm";
}
if ($verbose & 0x1) {