1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:37:35 +00:00

Toolchain: Don't pass -lpthread when pthreads are requested

This is essentially a no-op since we have our replacement linker script,
but if we can skip over that entirely, why not?
This commit is contained in:
Tim Schumacher 2022-07-15 16:09:36 +02:00 committed by Linus Groh
parent 5870484d1a
commit a857b6297a
2 changed files with 2 additions and 5 deletions

View file

@ -96,7 +96,7 @@ index 000000000..dc2f5361e
+/* Default arguments you want when running your
+ i686-serenity-gcc/x86_64-serenity-gcc toolchain */
+#undef LIB_SPEC
+#define LIB_SPEC "%{pthread:-lpthread} -lc" /* link against C standard library */
+#define LIB_SPEC "-lc" /* link against C standard library */
+
+/* Files that are linked before user code.
+ The %s tells GCC to look for these files in the library directory. */