gnu: tcc-musl: Update build flags for multiple architectures.

* gnu/packages/commencement.scm (tcc-musl)[arguments]: Adjust the custom
'build phase to provide necessary architecture specific flags.

Change-Id: I1e506cceae26f8a24336d36f94211d9a8923c491
This commit is contained in:
Efraim Flashner 2024-11-24 11:57:34 +02:00
parent 5b4d2b7c4e
commit c7f5bb6143
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1062,8 +1062,15 @@ (define tcc-musl
"tcc"
"-g"
"-vvv"
"-D" "REG_PC=0"
"-D" "REG_S0=8"
;; Some missed bits from musl in arch/$ARCH/bits/signal.h
#$@(cond
((target-riscv64?)
#~("-D" "REG_PC=0"
"-D" "REG_S0=8"))
((target-x86-64?)
#~("-D" "REG_EBP=6"
"-D" "REG_EIP=14"))
(#t #~()))
"-D" "ONE_SOURCE=1"
"-D" "TCC_VERSION=\"0.9.28rc\""
"-D" "CONFIG_TCC_STATIC=1"