build-32.sh
This commit is contained in:
parent
ac0baf84d4
commit
53838fb6b6
6
build-32.sh
Executable file
6
build-32.sh
Executable 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
|
|
@ -345,6 +345,10 @@
|
|||
"-I" "src"
|
||||
"-I" "lib"
|
||||
"-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"))
|
||||
|
||||
(define %C32-FLAGS
|
||||
|
|
3
guix.scm
3
guix.scm
|
@ -48,6 +48,7 @@
|
|||
(gnu packages base)
|
||||
(gnu packages commencement)
|
||||
(gnu packages cross-base)
|
||||
(gnu packages elf)
|
||||
(gnu packages gcc)
|
||||
(gnu packages guile)
|
||||
(gnu packages mes)
|
||||
|
@ -189,6 +190,8 @@ hex2 linker.")
|
|||
;; Use cross-compiler rather than #:system "i686-linux" to get
|
||||
;; MesCC 64 bit .go files installed ready for use with Guile.
|
||||
`(("i686-linux-binutils" ,(cross-binutils triplet))
|
||||
("patchelf" ,patchelf)
|
||||
("i686-linux-libc" ,(cross-libc triplet)) ;; FIXME: for debugging only
|
||||
("i686-linux-gcc" ,(cross-gcc triplet)))
|
||||
'())
|
||||
("perl" ,perl))) ;build-aux/gitlog-to-changelog
|
||||
|
|
Loading…
Reference in a new issue