Commit: 577e02951b5f9b0ec9028d2b8dcf5a642cf07a84
Parent: e5c2daae9949170f982cbcfcd638f6194d9fcdf1
Author: Randy Palamar
Date: Thu, 4 Apr 2024 10:22:31 -0600
statically link by default
this is especially useful on win32 so that you don't need to copy
winpthread.dll (or whatever) around with the executable.
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/build.sh b/build.sh
@@ -1,6 +1,4 @@
#!/bin/sh
set -x
-srcs="mc.c"
-
-clang -O3 -Wall -march=native $srcs -o mc -lm -lpthread
+clang -O3 -Wall -march=native mc.c -o mc -lm -lpthread -static