Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
85
Issues
85
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
32
Merge Requests
32
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chakra
Packages
core
Commits
8720f9af
Commit
8720f9af
authored
Apr 26, 2013
by
Msnuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Last fixes to TC
parent
1fdad9f1
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
285 additions
and
202 deletions
+285
-202
binutils/PKGBUILD
binutils/PKGBUILD
+34
-41
binutils/binutils-2.23.2-texinfo-5.0.patch
binutils/binutils-2.23.2-texinfo-5.0.patch
+162
-0
binutils/binutils.install
binutils/binutils.install
+1
-1
dejagnu/PKGBUILD
dejagnu/PKGBUILD
+5
-5
gcc/PKGBUILD
gcc/PKGBUILD
+45
-58
gcc/gcc-4.7.1-libada-pic.patch
gcc/gcc-4.7.1-libada-pic.patch
+0
-12
gcc/gcc-4.7.1-libgo-write.patch
gcc/gcc-4.7.1-libgo-write.patch
+0
-12
gcc/gcc_pure64.patch
gcc/gcc_pure64.patch
+0
-26
glibc/PKGBUILD
glibc/PKGBUILD
+28
-36
glibc/glibc.install
glibc/glibc.install
+6
-7
libtool/PKGBUILD
libtool/PKGBUILD
+2
-2
ppl/PKGBUILD
ppl/PKGBUILD
+2
-2
No files found.
binutils/PKGBUILD
View file @
8720f9af
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
pkgname
=
binutils
pkgname
=
binutils
pkgver
=
2.23
pkgver
=
2.23
.2
pkgrel
=
1
pkgrel
=
1
pkgdesc
=
"A set of programs to assemble and manipulate binary and object files"
pkgdesc
=
"A set of programs to assemble and manipulate binary and object files"
arch
=(
'x86_64'
)
arch
=(
'x86_64'
)
url
=
"http://www.gnu.org/software/binutils/"
url
=
"http://www.gnu.org/software/binutils/"
license
=(
'GPL'
)
license
=(
'GPL'
)
groups
=(
'base-devel'
)
groups
=(
'base-devel'
)
depends
=(
'glibc>=2.1
5
'
'zlib'
)
depends
=(
'glibc>=2.1
7
'
'zlib'
)
checkdepends
=(
'dejagnu'
'bc'
)
checkdepends
=(
'dejagnu'
'bc'
)
options
=(
'!libtool'
'!distcc'
'!ccache'
)
options
=(
'!libtool'
'!distcc'
'!ccache'
)
install
=
binutils.install
install
=
binutils.install
source
=(
ftp://ftp.gnu.org/gnu/binutils/binutils-
${
pkgver
}
.tar.gz
{
,.sig
})
source
=(
ftp://ftp.gnu.org/gnu/binutils/binutils-
${
pkgver
}
.tar.bz2
{
,.sig
}
md5sums
=(
'ed58f50d8920c3f1d9cb110d5c972c27'
binutils-2.23.2-texinfo-5.0.patch
)
'5293d43d444852f71f7c96c6295ba66d'
)
md5sums
=(
'4f8fa651e35ef262edc01d60fb45702e'
'dfde4428f08d91f309cdcfe92bf28d08'
'34e439ce23213a91e2af872dfbb5094c'
)
prepare
()
{
cd
${
srcdir
}
/binutils-
${
pkgver
}
# http://sourceware.org/git/?p=binutils.git;a=patch;h=e02bf935
# http://sourceware.org/git/?p=binutils.git;a=patch;h=935f8542
patch
-p1
-i
${
srcdir
}
/binutils-2.23.2-texinfo-5.0.patch
# hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
sed
-i
"/ac_cpp=/s/
\$
CPPFLAGS/
\$
CPPFLAGS -O2/"
libiberty/configure
mkdir
${
srcdir
}
/binutils-build
}
build
()
{
build
()
{
cd
${
srcdir
}
mkdir
binutils-build
&&
cd
binutils-build
prepare
cd
${
srcdir
}
/binutils-build
${
srcdir
}
/binutils-
${
pkgver
}
/configure
--prefix
=
/usr
\
${
srcdir
}
/binutils-
${
pkgver
}
/configure
--prefix
=
/usr
\
--with-lib-path
=
/usr/lib:/usr/local/lib
\
--with-lib-path
=
/usr/lib:/usr/local/lib
\
--with-bugurl
=
http://chakra-
linux.org/bugs/
\
--with-bugurl
=
http://chakra-
project.org/bugs
\
--enable-ld
=
default
--enable-gold
\
--enable-ld
=
default
--enable-gold
\
--enable-plugins
--enable-threads
--enable-shared
\
--enable-plugins
--enable-threads
\
--with-pic
--enable-shared
\
--disable-werror
--disable-multilib
--disable-werror
--disable-multilib
# check the host environment and makes sure all the necessary tools are available
# check the host environment and makes sure all the necessary tools are available
make configure-host
make configure-host
make
tooldir
=
${
pkgdir
}
/usr
make
tooldir
=
/usr
# Rebuild libiberty.a with -fPIC
cp
-a
libiberty libiberty-pic
make
-C
libiberty-pic clean
make
CFLAGS
=
"
$CFLAGS
-fPIC"
-C
libiberty-pic
# Rebuild libbfd.a with -fPIC
# hidden visability prevent 3rd party shared libraries exporting bfd non-stable API
cp
-a
bfd bfd-pic
make
-C
bfd-pic clean
make
CFLAGS
=
"
$CFLAGS
-fPIC -fvisibility=hidden"
-C
bfd-pic
# Rebuild libopcodes.a with -fPIC
cp
-a
opcodes opcodes-pic
make
-C
opcodes-pic clean
make
CFLAGS
=
"
$CFLAGS
-fPIC"
-C
opcodes-pic
}
}
check
()
{
check
()
{
cd
${
srcdir
}
/binutils-build
cd
${
srcdir
}
/binutils-build
# unset LDFLAGS as testsuite makes assumptions about which ones are active
# unset LDFLAGS as testsuite makes assumptions about which ones are active
# do not abort on errors - manually check log files
# do not abort on errors - manually check log files
make
LDFLAGS
=
""
-k
check
||
true
make
LDFLAGS
=
""
-k
check
||
true
...
@@ -70,17 +67,13 @@ package() {
...
@@ -70,17 +67,13 @@ package() {
install
-m644
${
srcdir
}
/binutils-
${
pkgver
}
/include/libiberty.h
${
pkgdir
}
/usr/include
install
-m644
${
srcdir
}
/binutils-
${
pkgver
}
/include/libiberty.h
${
pkgdir
}
/usr/include
install
-m644
${
srcdir
}
/binutils-
${
pkgver
}
/include/demangle.h
${
pkgdir
}
/usr/include
install
-m644
${
srcdir
}
/binutils-
${
pkgver
}
/include/demangle.h
${
pkgdir
}
/usr/include
# install libraries rebuilt with -fPIC
# Install PIC libiberty.a
install
-m644
libiberty-pic/libiberty.a
${
pkgdir
}
/usr/lib
install
-m644
libiberty/pic/libiberty.a
${
pkgdir
}
/usr/lib
install
-m644
bfd-pic/libbfd.a
${
pkgdir
}
/usr/lib
install
-m644
opcodes/libopcodes.a
${
pkgdir
}
/usr/lib
# Remove
Windows/Novell specific man pag
es
# Remove
unwanted fil
es
rm
${
pkgdir
}
/usr/share/man/man1/
{
dlltool,nlmconv,windres,windmc
}
*
rm
${
pkgdir
}
/usr/share/man/man1/
{
dlltool,nlmconv,windres,windmc
}
*
rm
${
pkgdir
}
/usr/share/info/
{
configure,standards
}
.info
# Remove these symlinks, they are not ABI stable.
# No shared linking to these files outside binutils
# Programs should compile static to the .a file.
rm
${
pkgdir
}
/usr/lib/lib
{
bfd,opcodes
}
.so
rm
${
pkgdir
}
/usr/lib/lib
{
bfd,opcodes
}
.so
echo
"INPUT ( /usr/lib/libbfd.a -liberty -lz )"
>
${
pkgdir
}
/usr/lib/libbfd.so
echo
"INPUT ( /usr/lib/libopcodes.a -lbfd )"
>
${
pkgdir
}
/usr/lib/libopcodes.so
}
}
binutils/binutils-2.23.2-texinfo-5.0.patch
0 → 100644
View file @
8720f9af
diff --git a/bfd/doc/bfd.texinfo b/bfd/doc/bfd.texinfo
index 45ffa73..3aa3300 100644
--- a/bfd/doc/bfd.texinfo
+++ b/bfd/doc/bfd.texinfo
@@ -322,7 +324,7 @@
All of BFD lives in one directory.
@printindex cp
@tex
-% I think something like @colophon should be in texinfo. In the
+% I think something like @@colophon should be in texinfo. In the
% meantime:
\long\def\colophon{\hbox to0pt{}\vfill
\centerline{The body of this manual is set in}
@@ -333,7 +335,7 @@
All of BFD lives in one directory.
\centerline{{\sl\fontname\tensl\/}}
\centerline{are used for emphasis.}\vfill}
\page\colophon
-% Blame: doc@cygnus.com, 28mar91.
+% Blame: doc@@cygnus.com, 28mar91.
@end tex
@bye
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index 56a0510..fb1802b 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -148,18 +148,18 @@
in the section entitled ``GNU Free Documentation License''.
* objcopy:: Copy and translate object files
* objdump:: Display information from object files
* ranlib:: Generate index to archive contents
-* readelf:: Display the contents of ELF format files
* size:: List section sizes and total size
* strings:: List printable strings from files
* strip:: Discard symbols
-* elfedit:: Update the ELF header of ELF files
* c++filt:: Filter to demangle encoded C++ symbols
* cxxfilt: c++filt. MS-DOS name for c++filt
* addr2line:: Convert addresses to file and line
* nlmconv:: Converts object code into an NLM
-* windres:: Manipulate Windows resources
* windmc:: Generator for Windows message resources
+* windres:: Manipulate Windows resources
* dlltool:: Create files needed to build and use DLLs
+* readelf:: Display the contents of ELF format files
+* elfedit:: Update the ELF header of ELF files
* Common Options:: Command-line options for all utilities
* Selecting the Target System:: How these utilities determine the target
* Reporting Bugs:: Reporting Bugs
@@ -2907,7 +2907,7 @@
the Info entries for @file{binutils}.
@c man end
@end ignore
-@node c++filt, addr2line, elfedit, Top
+@node c++filt, addr2line, strip, Top
@chapter c++filt
@kindex c++filt
@@ -4384,7 +4384,7 @@
equivalent. At least one of the @option{--output-mach},
@table @env
-@itemx --input-mach=@var{machine}
+@item --input-mach=@var{machine}
Set the matching input ELF machine type to @var{machine}. If
@option{--input-mach} isn't specified, it will match any ELF
machine types.
@@ -4392,21 +4392,21 @@
machine types.
The supported ELF machine types are, @var{L1OM}, @var{K1OM} and
@var{x86-64}.
-@itemx --output-mach=@var{machine}
+@item --output-mach=@var{machine}
Change the ELF machine type in the ELF header to @var{machine}. The
supported ELF machine types are the same as @option{--input-mach}.
-@itemx --input-type=@var{type}
+@item --input-type=@var{type}
Set the matching input ELF file type to @var{type}. If
@option{--input-type} isn't specified, it will match any ELF file types.
The supported ELF file types are, @var{rel}, @var{exec} and @var{dyn}.
-@itemx --output-type=@var{type}
+@item --output-type=@var{type}
Change the ELF file type in the ELF header to @var{type}. The
supported ELF types are the same as @option{--input-type}.
-@itemx --input-osabi=@var{osabi}
+@item --input-osabi=@var{osabi}
Set the matching input ELF file OSABI to @var{osabi}. If
@option{--input-osabi} isn't specified, it will match any ELF OSABIs.
@@ -4416,7 +4416,7 @@
The supported ELF OSABIs are, @var{none}, @var{HPUX}, @var{NetBSD},
@var{FreeBSD}, @var{TRU64}, @var{Modesto}, @var{OpenBSD}, @var{OpenVMS},
@var{NSK}, @var{AROS} and @var{FenixOS}.
-@itemx --output-osabi=@var{osabi}
+@item --output-osabi=@var{osabi}
Change the ELF OSABI in the ELF header to @var{osabi}. The
supported ELF OSABI are the same as @option{--input-osabi}.
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index c7ae2a5..4777ad5 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -142,12 +144,12 @@
in the section entitled ``GNU Free Documentation License''.
@ifset ARM
* ARM:: ld and the ARM family
@end ifset
-@ifset HPPA
-* HPPA ELF32:: ld and HPPA 32-bit ELF
-@end ifset
@ifset M68HC11
* M68HC11/68HC12:: ld and the Motorola 68HC11 and 68HC12 families
@end ifset
+@ifset HPPA
+* HPPA ELF32:: ld and HPPA 32-bit ELF
+@end ifset
@ifset M68K
* M68K:: ld and Motorola 68K family
@end ifset
@@ -6012,6 +6014,9 @@
functionality are not listed.
@ifset I960
* i960:: @command{ld} and the Intel 960 family
@end ifset
+@ifset M68HC11
+* M68HC11/68HC12:: @code{ld} and the Motorola 68HC11 and 68HC12 families
+@end ifset
@ifset ARM
* ARM:: @command{ld} and the ARM family
@end ifset
@@ -6027,9 +6032,6 @@
functionality are not listed.
@ifset MSP430
* MSP430:: @command{ld} and MSP430
@end ifset
-@ifset M68HC11
-* M68HC11/68HC12:: @code{ld} and the Motorola 68HC11 and 68HC12 families
-@end ifset
@ifset POWERPC
* PowerPC ELF32:: @command{ld} and PowerPC 32-bit ELF Support
@end ifset
@@ -7877,7 +7879,7 @@
If you have more than one @code{SECT} statement for the same
@printindex cp
@tex
-% I think something like @colophon should be in texinfo. In the
+% I think something like @@colophon should be in texinfo. In the
% meantime:
\long\def\colophon{\hbox to0pt{}\vfill
\centerline{The body of this manual is set in}
@@ -7888,7 +7890,7 @@
If you have more than one @code{SECT} statement for the same
\centerline{{\sl\fontname\tensl\/}}
\centerline{are used for emphasis.}\vfill}
\page\colophon
-% Blame: doc@cygnus.com, 28mar91.
+% Blame: doc@@cygnus.com, 28mar91.
@end tex
@bye
--
1.7.1
binutils/binutils.install
View file @
8720f9af
infodir
=
usr
/
share
/
info
infodir
=
usr
/
share
/
info
filelist
=
(
as
.
info
bfd
.
info
binutils
.
info
configure
.
info
gprof
.
info
ld
.
info
standards
.
info
)
filelist
=
(
as
.
info
bfd
.
info
binutils
.
info
gprof
.
info
ld
.
info
)
post_upgrade
()
{
post_upgrade
()
{
[
-
x
usr
/
bin
/
install
-
info
]
||
return
0
[
-
x
usr
/
bin
/
install
-
info
]
||
return
0
...
...
dejagnu/PKGBUILD
View file @
8720f9af
...
@@ -4,18 +4,18 @@
...
@@ -4,18 +4,18 @@
# maintainer abveritas[at]chakra-project[dot]org>
# maintainer abveritas[at]chakra-project[dot]org>
pkgname
=
dejagnu
pkgname
=
dejagnu
pkgver
=
1.5
pkgver
=
1.5
.1
pkgrel
=
3
pkgrel
=
1
pkgdesc
=
"Framework for testing other programs"
pkgdesc
=
"Framework for testing other programs"
arch
=(
'any'
)
arch
=(
'any'
)
url
=
"http://www.gnu.org/software/dejagnu/"
url
=
"http://www.gnu.org/software/dejagnu/"
license
=(
'GPL'
)
license
=(
'GPL'
)
depends
=(
'sh'
'expect'
)
depends
=(
'sh'
'expect'
)
makedepends
=(
'dejagnu'
)
makedepends
=(
'dejagnu'
)
options
=(
'!libtool'
'log'
)
options
=(
'!libtool'
)
install
=
dejagnu.install
install
=
dejagnu.install
source
=(
"http://ftp.gnu.org/gnu/dejagnu/
${
pkgname
}
-
${
pkgver
}
.tar.gz"
)
source
=(
"http://ftp.gnu.org/gnu/dejagnu/
${
pkgname
}
-
${
pkgver
}
.tar.gz"
)
md5sums
=(
'
3df1cbca885e751e22d3ebd1ac64dc3c
'
)
md5sums
=(
'
8386e04e362345f50ad169f052f4c4ab
'
)
build
()
{
build
()
{
...
...
gcc/PKGBUILD
View file @
8720f9af
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
# NOTE: libtool requires rebuilt with each new gcc version
pkgname
=(
'gcc'
'gcc-libs'
'gcc-fortran'
'gcc-objc'
'gcc-ada'
'gcc-go'
)
pkgname
=(
'gcc'
'gcc-libs'
'gcc-fortran'
'gcc-objc'
'gcc-ada'
'gcc-go'
)
pkgver
=
4.
7.2
pkgver
=
4.
8.0
pkgrel
=
1
pkgrel
=
1
#_snapshot=4.7-20120721
#_snapshot=4.7-20120721
pkgdesc
=
"The GNU Compiler Collection"
pkgdesc
=
"The GNU Compiler Collection"
arch
=(
'x86_64'
)
arch
=(
'x86_64'
)
license
=(
'GPL'
'LGPL'
'FDL'
'custom'
)
license
=(
'GPL'
'LGPL'
'FDL'
'custom'
)
url
=
"http://gcc.gnu.org"
url
=
"http://gcc.gnu.org"
makedepends
=(
'binutils>=2.23'
'libmpc'
'cloog'
'
ppl'
'
gcc-ada'
'doxygen'
)
makedepends
=(
'binutils>=2.23'
'libmpc'
'cloog'
'gcc-ada'
'doxygen'
)
checkdepends
=(
'dejagnu'
)
checkdepends
=(
'dejagnu'
)
options
=(
'!libtool'
'!emptydirs'
)
options
=(
'!libtool'
'!emptydirs'
)
source
=(
ftp://gcc.gnu.org/pub/gcc/releases/gcc-
${
pkgver
}
/gcc-
${
pkgver
}
.tar.bz2
source
=(
ftp://gcc.gnu.org/pub/gcc/releases/gcc-
${
pkgver
}
/gcc-
${
pkgver
}
.tar.bz2
)
#ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.bz2
#ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.bz2)
gcc_pure64.patch
md5sums
=(
'e6040024eb9e761c3bea348d1fa5abb0'
)
gcc-4.7.1-libada-pic.patch
gcc-4.7.1-libgo-write.patch
)
md5sums
=(
'cc308a0891e778cfda7a151ab8a6e762'
'ced48436c1b3c981d721a829f1094de1'
'69f4c4ad538878085042b5c7f206887b'
'5647f5bbbb74fab3013b396da1749d2a'
)
if
[
-n
"
${
_snapshot
}
"
]
;
then
if
[
-n
"
${
_snapshot
}
"
]
;
then
_basedir
=
"
${
srcdir
}
/gcc-
${
_snapshot
}
"
_basedir
=
"
${
srcdir
}
/gcc-
${
_snapshot
}
"
else
else
_basedir
=
"
${
srcdir
}
/
gcc-
${
pkgver
}
"
_basedir
=
"gcc-
${
pkgver
}
"
fi
fi
build
()
{
build
()
{
cd
${
_basedir
}
cd
${
srcdir
}
/
${
_basedir
}
# Do not install libiberty
sed
-i
's/install_to_$(INSTALL_DEST) //'
libiberty/Makefile.in
# Do not run fixincludes
# Do not run fixincludes
sed
-i
's@\./fixinc\.sh@-c true@'
gcc/Makefile.in
sed
-i
's@\./fixinc\.sh@-c true@'
gcc/Makefile.in
patch
-p1
-i
${
srcdir
}
/gcc_pure64.patch
sed
-i
'/m64=/s/lib64/lib/'
gcc/config/i386/t-linux64
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53679
patch
-p1
-i
${
srcdir
}
/gcc-4.7.1-libgo-write.patch
# bug to file...
patch
-p1
-i
${
srcdir
}
/gcc-4.7.1-libada-pic.patch
echo
${
pkgver
}
>
gcc/BASE-VER
echo
${
pkgver
}
>
gcc/BASE-VER
# using -pipe causes spurious test-suite failures
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
CFLAGS
=
${
CFLAGS
/-pipe/
}
CXXFLAGS
=
${
CXXFLAGS
/-pipe/
}
cd
${
srcdir
}
cd
${
srcdir
}
mkdir
gcc-build
&&
cd
gcc-build
mkdir
gcc-build
&&
cd
gcc-build
${
_basedir
}
/configure
--prefix
=
/usr
\
${
srcdir
}
/
${
_basedir
}
/configure
--prefix
=
/usr
\
--libdir
=
/usr/lib
--libexecdir
=
/usr/lib
\
--libdir
=
/usr/lib
--libexecdir
=
/usr/lib
\
--mandir
=
/usr/share/man
--infodir
=
/usr/share/info
\
--mandir
=
/usr/share/man
--infodir
=
/usr/share/info
\
--with-bugurl
=
http://chakra-linux.org/bugs/
\
--enable-languages
=
c,c++,ada,fortran,go,lto,objc,obj-c++
\
--enable-languages
=
c,c++,ada,fortran,go,lto,objc,obj-c++
\
--enable-shared
--enable-threads
=
posix
\
--enable-shared
--enable-threads
=
posix
\
--with-system-zlib
--enable-__cxa_atexit
\
--with-system-zlib
--enable-__cxa_atexit
\
--disable-libunwind-exceptions
--enable-clocale
=
gnu
\
--disable-libunwind-exceptions
--enable-clocale
=
gnu
\
--disable-libstdcxx-pch
--enable-libstdcxx-time
\
--disable-libstdcxx-pch
\
--enable-gnu-unique-object
--enable-linker-build-id
\
--enable-gnu-unique-object
--enable-linker-build-id
\
--with-ppl
--enable-cloog-backend
=
isl
\
--enable-cloog-backend
=
isl
--disable-cloog-version-check
\
--disable-ppl-version-check
--disable-cloog-version-check
\
--enable-lto
--enable-gold
--enable-ld
=
default
\
--enable-lto
--enable-gold
--enable-ld
=
default
\
--enable-plugin
--with-plugin-ld
=
ld.gold
\
--enable-plugin
--with-plugin-ld
=
ld.gold
\
--with-linker-hash-style
=
gnu
\
--with-linker-hash-style
=
gnu
--disable-install-libiberty
\
--disable-multilib
--disable-libssp
\
--disable-multilib
--disable-libssp
--disable-werror
\
--disable-build-with-cxx
--disable-build-poststage1-with-cxx
\
--enable-checking
=
release
--enable-checking
=
release
make
make
...
@@ -89,14 +70,14 @@ check() {
...
@@ -89,14 +70,14 @@ check() {
# do not abort on error as some are "expected"
# do not abort on error as some are "expected"
make
-k
check
||
true
make
-k
check
||
true
${
_basedir
}
/contrib/test_summary
${
srcdir
}
/
${
_basedir
}
/contrib/test_summary
}
}
package_gcc-libs
()
package_gcc-libs
()
{
{
pkgdesc
=
"Runtime libraries shipped by GCC"
pkgdesc
=
"Runtime libraries shipped by GCC"
groups
=(
'base'
)
groups
=(
'base'
)
depends
=(
'glibc>=2.1
5
'
)
depends
=(
'glibc>=2.1
7
'
)
install
=
gcc-libs.install
install
=
gcc-libs.install
cd
${
srcdir
}
/gcc-build
cd
${
srcdir
}
/gcc-build
...
@@ -104,6 +85,8 @@ package_gcc-libs()
...
@@ -104,6 +85,8 @@ package_gcc-libs()
for
lib
in
libmudflap libgomp libstdc++-v3/src libitm
;
do
for
lib
in
libmudflap libgomp libstdc++-v3/src libitm
;
do
make
-j1
-C
$CHOST
/
$lib
DESTDIR
=
${
pkgdir
}
install-toolexeclibLTLIBRARIES
make
-j1
-C
$CHOST
/
$lib
DESTDIR
=
${
pkgdir
}
install-toolexeclibLTLIBRARIES
done
done
make
-j1
-C
$CHOST
/libsanitizer/tsan
DESTDIR
=
${
pkgdir
}
install-toolexeclibLTLIBRARIES
make
-j1
-C
$CHOST
/libstdc++-v3/po
DESTDIR
=
${
pkgdir
}
install
make
-j1
-C
$CHOST
/libstdc++-v3/po
DESTDIR
=
${
pkgdir
}
install
make
-j1
-C
$CHOST
/libgomp
DESTDIR
=
${
pkgdir
}
install-info
make
-j1
-C
$CHOST
/libgomp
DESTDIR
=
${
pkgdir
}
install-info
make
-j1
-C
$CHOST
/libitm
DESTDIR
=
${
pkgdir
}
install-info
make
-j1
-C
$CHOST
/libitm
DESTDIR
=
${
pkgdir
}
install-info
...
@@ -119,14 +102,14 @@ package_gcc-libs()
...
@@ -119,14 +102,14 @@ package_gcc-libs()
find
${
pkgdir
}
-name
*
.a
-delete
find
${
pkgdir
}
-name
*
.a
-delete
# Install Runtime Library Exception
# Install Runtime Library Exception
install
-Dm644
${
_basedir
}
/COPYING.RUNTIME
\
install
-Dm644
${
srcdir
}
/
${
_basedir
}
/COPYING.RUNTIME
\
${
pkgdir
}
/usr/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION
${
pkgdir
}
/usr/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION
}
}
package_gcc
()
package_gcc
()
{
{
pkgdesc
=
"The GNU Compiler Collection - C and C++ frontends"
pkgdesc
=
"The GNU Compiler Collection - C and C++ frontends"
depends
=(
"gcc-libs=
$pkgver
-
$pkgrel
"
'binutils>=2.23'
'libmpc'
'cloog'
'ppl'
)
depends
=(
"gcc-libs=
$pkgver
-
$pkgrel
"
'binutils>=2.23'
'libmpc'
'cloog'
)
groups
=(
'base-devel'
)
groups
=(
'base-devel'
)
install
=
gcc.install
install
=
gcc.install
...
@@ -135,19 +118,19 @@ package_gcc()
...
@@ -135,19 +118,19 @@ package_gcc()
make
-j1
DESTDIR
=
${
pkgdir
}
install
make
-j1
DESTDIR
=
${
pkgdir
}
install
install
-d
$pkgdir
/usr/share/gdb/auto-load/usr/lib
install
-d
$pkgdir
/usr/share/gdb/auto-load/usr/lib
mv
$pkgdir
{
,/usr/share/gdb/auto-load
}
/usr/lib/libstdc++.so.6.0.1
7
-gdb.py
mv
$pkgdir
{
,/usr/share/gdb/auto-load
}
/usr/lib/libstdc++.so.6.0.1
8
-gdb.py
# unfortunately it is much, much easier to install the lot and clean-up the mess...
# unfortunately it is much, much easier to install the lot and clean-up the mess...
rm
$pkgdir
/usr/bin/
{{
$CHOST
-,
}
gfortran,
{
$CHOST
-,
}
gccgo,gnat
*
}
rm
$pkgdir
/usr/bin/
{{
$CHOST
-,
}
gfortran,
{
$CHOST
-,
}
gccgo,gnat
*
}
rm
$pkgdir
/usr/lib/
*
.so
*
rm
$pkgdir
/usr/lib/
*
.so
*
rm
$pkgdir
/usr/lib/lib
{
ffi,gfortran,go
{
,begin
}
,objc,quadmath
}
.a
rm
$pkgdir
/usr/lib/lib
{
atomic,ffi,gfortran,go
{
,begin
}
,iberty,objc
}
.a
rm
$pkgdir
/usr/lib/libgfortran.spec
rm
$pkgdir
/usr/lib/libgfortran.spec
rm
-r
$pkgdir
/usr/lib/gcc/
$CHOST
/
${
pkgver
}
/
{
ada
{
include,lib
}
,finclude,include/objc
}
rm
-r
$pkgdir
/usr/lib/gcc/
$CHOST
/
${
pkgver
}
/
{
ada
{
include,lib
}
,finclude,include/objc
}
rm
$pkgdir
/usr/lib/gcc/
$CHOST
/
${
pkgver
}
/include/
{
ffi
{
,target
}
.h,quadmath
{
,_weak
}
.h
}
rm
$pkgdir
/usr/lib/gcc/
$CHOST
/
${
pkgver
}
/include/
ffi
{
,target
}
.h
rm
$pkgdir
/usr/lib/gcc/
$CHOST
/
${
pkgver
}
/
{
cc1obj
{
,plus
}
,f951,gnat1,go1
}
rm
$pkgdir
/usr/lib/gcc/
$CHOST
/
${
pkgver
}
/
{
cc1obj
{
,plus
}
,f951,gnat1,go1
}
rm
$pkgdir
/usr/lib/gcc/
$CHOST
/
${
pkgver
}
/
{
libcaf_single,libgfortranbegin
}
.a
rm
$pkgdir
/usr/lib/gcc/
$CHOST
/
${
pkgver
}
/
{
libcaf_single,libgfortranbegin
}
.a
rm
-r
$pkgdir
/usr/lib/go
rm
-r
$pkgdir
/usr/lib/go
rm
$pkgdir
/usr/share/info/
{
gccgo,gfortran,gnat
*
,libgomp,libquadmath,libitm
}
.info
rm
$pkgdir
/usr/share/info/
{
gccgo,gfortran,gnat
*
,lib
ffi,lib
gomp,libquadmath,libitm
}
.info
rm
$pkgdir
/usr/share/locale/
{
de,fr
}
/LC_MESSAGES/libstdc++.mo
rm
$pkgdir
/usr/share/locale/
{
de,fr
}
/LC_MESSAGES/libstdc++.mo
rm
$pkgdir
/usr/share/man/man1/
{
gccgo,gfortran
}
.1
rm
$pkgdir
/usr/share/man/man1/
{
gccgo,gfortran
}
.1
rm
$pkgdir
/usr/share/man/man3/ffi
*
rm
$pkgdir
/usr/share/man/man3/ffi
*
...
@@ -190,7 +173,7 @@ EOF
...
@@ -190,7 +173,7 @@ EOF
${
CHOST
}
/libstdc++-v3/doc/doxygen/man/man3/
*
.3
${
CHOST
}
/libstdc++-v3/doc/doxygen/man/man3/
*
.3
# Install Runtime Library Exception
# Install Runtime Library Exception
install
-Dm644
${
_basedir
}
/COPYING.RUNTIME
\
install
-Dm644
${
srcdir
}
/
${
_basedir
}
/COPYING.RUNTIME
\
${
pkgdir
}
/usr/share/licenses/gcc/RUNTIME.LIBRARY.EXCEPTION
${
pkgdir
}
/usr/share/licenses/gcc/RUNTIME.LIBRARY.EXCEPTION
}
}
...
@@ -201,20 +184,22 @@ package_gcc-fortran()
...
@@ -201,20 +184,22 @@ package_gcc-fortran()
install
=
gcc-fortran.install
install
=
gcc-fortran.install
cd
${
srcdir
}
/gcc-build
cd
${
srcdir
}
/gcc-build
make
-j1
DESTDIR
=
${
pkgdir
}
install-target-libquadmath
make
-j1
DESTDIR
=
$pkgdir
install-target-libgfortran
make
-j1
DESTDIR
=
$pkgdir
install-target-libgfortran
make
-j1
-C
$CHOST
/libgomp
DESTDIR
=
$pkgdir
install-nodist_fincludeHEADERS
make
-j1
-C
$CHOST
/libgomp
DESTDIR
=
$pkgdir
install-nodist_fincludeHEADERS
make
-j1
-C
gcc
DESTDIR
=
$pkgdir
fortran.install-
{
common,man,info
}
make
-j1
-C
gcc
DESTDIR
=
$pkgdir
fortran.install-
{
common,man,info
}
install
-Dm755
gcc/f951
$pkgdir
/usr/lib/gcc/
$CHOST
/
$pkgver
/f951
install
-Dm755
gcc/f951
$pkgdir
/usr/lib/gcc/
$CHOST
/
$pkgver
/f951
# remove libraries included in gcc-libs
rm
${
pkgdir
}
/usr/lib/lib
{
gfortran,quadmath
}
.so
*
rm
${
pkgdir
}
/usr/share/info/libquadmath.info
ln
-s
gfortran
${
pkgdir
}
/usr/bin/f95
ln
-s
gfortran
${
pkgdir
}
/usr/bin/f95
# remove files included in gcc-libs or gcc
rm
${
pkgdir
}
/usr/lib/lib
{
gfortran,gcc_s
}
.so
*
rm
${
pkgdir
}
/usr/lib/libquadmath.
{
a,so
*
}
rm
${
pkgdir
}
/usr/lib/gcc/
$CHOST
/
${
pkgver
}
/
{
*
.o,libgc
*
}
rm
${
pkgdir
}
/usr/share/info/libquadmath.info
rm
-r
${
pkgdir
}
/usr/lib/gcc/
$CHOST
/
${
pkgver
}
/include
# Install Runtime Library Exception
# Install Runtime Library Exception
install
-Dm644
${
_basedir
}
/COPYING.RUNTIME
\
install
-Dm644
${
srcdir
}
/
${
_basedir
}
/COPYING.RUNTIME
\
${
pkgdir
}
/usr/share/licenses/gcc-fortran/RUNTIME.LIBRARY.EXCEPTION
${
pkgdir
}
/usr/share/licenses/gcc-fortran/RUNTIME.LIBRARY.EXCEPTION
}
}
...
@@ -228,11 +213,13 @@ package_gcc-objc()
...
@@ -228,11 +213,13 @@ package_gcc-objc()
install
-dm755
$pkgdir
/usr/lib/gcc/
$CHOST
/
$pkgver
/
install
-dm755
$pkgdir
/usr/lib/gcc/
$CHOST
/
$pkgver
/
install
-m755
gcc/cc1obj
{
,plus
}
$pkgdir
/usr/lib/gcc/
$CHOST
/
$pkgver
/
install
-m755
gcc/cc1obj
{
,plus
}
$pkgdir
/usr/lib/gcc/
$CHOST
/
$pkgver
/
# remove libraries included in gcc-libs
# remove files included in gcc-libs or gcc
rm
${
pkgdir
}
/usr/lib/libobjc.so
*
rm
${
pkgdir
}
/usr/lib/lib
{
gcc_s,objc
}
.so
*
rm
$pkgdir
/usr/lib/gcc/
$CHOST
/
${
pkgver
}
/
{
*
.o,lib
*
}
rm
$pkgdir
/usr/lib/gcc/
$CHOST
/
${
pkgver
}
/include/unwind.h
# Install Runtime Library Exception
# Install Runtime Library Exception
install
-Dm644
${
_basedir
}
/COPYING.RUNTIME
\
install
-Dm644
${
srcdir
}
/
${
_basedir
}
/COPYING.RUNTIME
\
${
pkgdir
}
/usr/share/licenses/gcc-objc/RUNTIME.LIBRARY.EXCEPTION
${
pkgdir
}
/usr/share/licenses/gcc-objc/RUNTIME.LIBRARY.EXCEPTION
}
}
...
@@ -249,7 +236,7 @@ package_gcc-ada()
...
@@ -249,7 +236,7 @@ package_gcc-ada()
ln
-s
gcc
${
pkgdir
}
/usr/bin/gnatgcc
ln
-s
gcc
${
pkgdir
}
/usr/bin/gnatgcc
# Install Runtime Library Exception
# Install Runtime Library Exception
install
-Dm644
${
_basedir
}
/COPYING.RUNTIME
\
install
-Dm644
${
srcdir
}
/
${
_basedir
}
/COPYING.RUNTIME
\
${
pkgdir
}
/usr/share/licenses/gcc-ada/RUNTIME.LIBRARY.EXCEPTION
${
pkgdir
}
/usr/share/licenses/gcc-ada/RUNTIME.LIBRARY.EXCEPTION