aboutsummaryrefslogtreecommitdiff
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 39fcc7b..ea422a1 100644
--- a/driver.c
+++ b/driver.c
@@ -440,6 +440,9 @@ main(int argc, char *argv[])
arrayaddptr(&stages[PREPROCESS].cmd, arg);
} else if (strcmp(arg, "-pedantic") == 0) {
/* ignore */
+ } else if (strcmp(arg, "-pthread") == 0) {
+ arrayaddptr(&stages[LINK].cmd, "-l");
+ arrayaddptr(&stages[LINK].cmd, "pthread");
} else {
if (arg[2] != '\0' && strchr("cESsv", arg[1]))
usage(NULL);