Skip to content

Commit

Permalink
gpkg-dev/cgt: compiler fix for x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxython committed Apr 17, 2024
1 parent 52db6a6 commit bed5bd1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
12 changes: 9 additions & 3 deletions gpkg-dev/cgt/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgname=cgt
pkgver=13.2.0
pkgrel=4
pkgrel=5
pkgdesc='Cross GCCs for Termux (only for Linux)'
arch=(x86_64)
url='https://gcc.gnu.org/'
Expand All @@ -10,12 +10,14 @@ source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz
gcc.cc.patch
gcc-Makefile.in.patch
gcc-configure.patch
config.sub.patch
set_glibc_dynamic_linker.patch)
sha256sums=('e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da'
'8d9f0c6cd1c57e623ba9b054f69185e4fb4717cc3af61c19d191948270042d6c'
'e61dc2469a70392923aeac3f9e80c0b0c7ebd372488bc99e6dd0e18c1e3e3360'
'1115c633d6fd0d4f6d6eeca50e4d52fd15f0bf52b4158ecb0ea6bedcb85ceb35'
'346843fbce4bddca236ca4331ae43c5356ed177689c7760d841d2db2d2643d13'
'da1d89b8f91899ca65cd232e78172166e94ec96c58532057ea25a0b470de019b'
'cd383a4a1916f4b3102f21c640d6116f697e0ef7cde5f705d83035849c200ec6')
groups=('cgct')

Expand Down Expand Up @@ -59,7 +61,7 @@ build() {
esac

"$srcdir"/gcc-${pkgver}/configure \
--host=${CHOST} \
--host=cgct \
--build=${CHOST} \
--target=${target} \
--prefix=${CGCT_PREFIX} \
Expand Down Expand Up @@ -97,7 +99,11 @@ build() {
AS_FOR_TARGET=${CGCT_PREFIX}/bin/as \
AR_FOR_TARGET=${CGCT_PREFIX}/bin/ar \
RANLIB_FOR_TARGET=${CGCT_PREFIX}/bin/ranlib \
NM_FOR_TARGET=${CGCT_PREFIX}/bin/nm
NM_FOR_TARGET=${CGCT_PREFIX}/bin/nm \
CC=x86_64-linux-gnu-gcc \
CXX=x86_64-linux-gnu-g++ \
AR=ar \
LD=ld
make

cd ..
Expand Down
11 changes: 11 additions & 0 deletions gpkg-dev/cgt/config.sub.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/gcc-13.2.0/config.sub 2024-04-17 10:30:27.611625659 +0300
+++ src/gcc-13.2.0/config.sub.patch 2024-04-17 10:30:38.461625655 +0300
@@ -1276,7 +1276,7 @@
| x86 | x86_64 | xc16x | xgate | xps100 \
| xstormy16 | xtensa* \
| ymp \
- | z8k | z80)
+ | z8k | z80 | cgct)
;;

*)

0 comments on commit bed5bd1

Please sign in to comment.