build.ck 959 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*++
  2. Copyright (c) 2015 Minoca Corp.
  3. This file is licensed under the terms of the GNU General Public License
  4. version 3. Alternative licensing terms are available. Contact
  5. info@minocacorp.com for details. See the LICENSE file at the root of this
  6. project for complete licensing information.
  7. Module Name:
  8. Static pthread
  9. Abstract:
  10. This module implements functions that must be statically linked for the
  11. POSIX thread library.
  12. Author:
  13. Evan Green 4-May-2015
  14. Environment:
  15. User Mode C Library
  16. --*/
  17. from menv import staticLibrary;
  18. function build() {
  19. var entries;
  20. var includes;
  21. var lib;
  22. var sources;
  23. sources = [
  24. "ptatfork.c",
  25. ];
  26. includes = [
  27. "$S/apps/libc/include"
  28. ];
  29. lib = {
  30. "label": "libpthread_nonshared",
  31. "inputs": sources,
  32. "includes": includes,
  33. "binplace": "bin",
  34. };
  35. entries = staticLibrary(lib);
  36. return entries;
  37. }