build-32.sh

This commit is contained in:
Jan Nieuwenhuizen 2018-04-16 20:25:31 +02:00
parent ac0baf84d4
commit 53838fb6b6
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
3 changed files with 13 additions and 0 deletions

6
build-32.sh Executable file
View file

@ -0,0 +1,6 @@
rm -r .store src/mes.gcc src/mes.o lib/*.o
rm -f crt*
cp $GUIX_ENVIRONMENT/lib/crt* .
CC=i686-unknown-linux-gnu-gcc ./make.scm src/mes.gcc
/gnu/store/3kjpz1shbp7hqf5y1garxarz9d027qh6-profile/bin/patchelf --set-interpreter /gnu/store/vcix667q0565nsd9gxk42nj2pmph5i6v-glibc-cross-i686-unknown-linux-gnu-2.26.105-g0890d5379c/lib/ld-linux.so.2 src/mes.gcc
mv src/mes.gcc src/mes.gcc-32

View file

@ -345,6 +345,10 @@
"-I" "src" "-I" "src"
"-I" "lib" "-I" "lib"
"-I" "include" "-I" "include"
"-v"
"-I" "/gnu/store/dhjqp2qd3h3d2n4ann2n2p3b06jc26q6-profile/include" ;; i686-unknown-linux-gnu-glibc for debugging
"-L" "/gnu/store/dhjqp2qd3h3d2n4ann2n2p3b06jc26q6-profile/lib"
"-Wl,-L/gnu/store/dhjqp2qd3h3d2n4ann2n2p3b06jc26q6-profile/lib"
"--include=lib/libc-gcc.c")) "--include=lib/libc-gcc.c"))
(define %C32-FLAGS (define %C32-FLAGS

View file

@ -48,6 +48,7 @@
(gnu packages base) (gnu packages base)
(gnu packages commencement) (gnu packages commencement)
(gnu packages cross-base) (gnu packages cross-base)
(gnu packages elf)
(gnu packages gcc) (gnu packages gcc)
(gnu packages guile) (gnu packages guile)
(gnu packages mes) (gnu packages mes)
@ -189,6 +190,8 @@ hex2 linker.")
;; Use cross-compiler rather than #:system "i686-linux" to get ;; Use cross-compiler rather than #:system "i686-linux" to get
;; MesCC 64 bit .go files installed ready for use with Guile. ;; MesCC 64 bit .go files installed ready for use with Guile.
`(("i686-linux-binutils" ,(cross-binutils triplet)) `(("i686-linux-binutils" ,(cross-binutils triplet))
("patchelf" ,patchelf)
("i686-linux-libc" ,(cross-libc triplet)) ;; FIXME: for debugging only
("i686-linux-gcc" ,(cross-gcc triplet))) ("i686-linux-gcc" ,(cross-gcc triplet)))
'()) '())
("perl" ,perl))) ;build-aux/gitlog-to-changelog ("perl" ,perl))) ;build-aux/gitlog-to-changelog