x86.scm 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2022 Mathieu Othacehe <othacehe@gnu.org>
  3. ;;;
  4. ;;; This file is part of GNU Guix.
  5. ;;;
  6. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; GNU Guix is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (guix platforms x86)
  19. #:use-module (guix platform)
  20. #:use-module (guix records)
  21. #:export (i686-linux
  22. x86_64-linux
  23. i686-mingw
  24. x86_64-mingw
  25. i586-gnu))
  26. (define i686-linux
  27. (platform
  28. (target "i686-linux-gnu")
  29. (system "i686-linux")
  30. (linux-architecture "i386")
  31. (glibc-dynamic-linker "/lib/ld-linux.so.2")))
  32. (define x86_64-linux
  33. (platform
  34. (target "x86_64-linux-gnu")
  35. (system "x86_64-linux")
  36. (linux-architecture "x86_64")
  37. (glibc-dynamic-linker "/lib/ld-linux-x86-64.so.2")))
  38. (define i686-mingw
  39. (platform
  40. (target "i686-w64-mingw32")
  41. (system #f)
  42. (glibc-dynamic-linker #f)))
  43. (define x86_64-mingw
  44. (platform
  45. (target "x86_64-w64-mingw32")
  46. (system #f)
  47. (glibc-dynamic-linker #f)))
  48. (define i586-gnu
  49. (platform
  50. (target "i586-pc-gnu")
  51. (system "i586-gnu")
  52. (glibc-dynamic-linker "/lib/ld.so.1")))