summaryrefslogtreecommitdiffstats
path: root/gcc5
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2017-10-20 09:53:35 +0000
committer Eric Hameleers <alien@slackware.com>2017-10-20 09:53:35 +0000
commit0b9afe7b3519072ed2256d72ab49d6b79c230ac9 (patch)
treed158c7ab9a56a7847f0ffea6a4be8f63888ff8eb /gcc5
parent1527c0c704c374c287a230deb0de4d4c4d4dcb9f (diff)
downloadasb-0b9afe7b3519072ed2256d72ab49d6b79c230ac9.tar.gz
asb-0b9afe7b3519072ed2256d72ab49d6b79c230ac9.tar.xz
Initial revision
Diffstat (limited to 'gcc5')
-rw-r--r--gcc5/build/README41
-rw-r--r--gcc5/build/gcc5.info17
2 files changed, 58 insertions, 0 deletions
diff --git a/gcc5/build/README b/gcc5/build/README
new file mode 100644
index 00000000..cf7b0a56
--- /dev/null
+++ b/gcc5/build/README
@@ -0,0 +1,41 @@
+This gcc5 package can be installed alongside Slackware's gcc-7 packages.
+These version 7 compilers can sometimes be quite a bit more strict about
+what they accept as valid code. As a consequence, you will regularly run
+into compilation issues with software. Not just the software made with
+the scripts on slackbuilds.org, but also some of the software in
+the Slackware core distribution requires patches in order to get them
+to compile.
+
+Therefore, having the gcc version 5 compilers can sometimes be a lifesaver.
+Particulars of the gcc5 package:
+- The gcc5 binaries were given a suffix '-5' to make them stand apart
+ from Slackware's default compilers.
+- The gcc5 package only contains the C, C++ and Java language compilers.
+- Only one all-encompassing package is built by the SlackBuild script.
+- Profile scripts are added to /etc/profile.d/. You can 'source'
+ the profile script to prefer the gcc-5 compilers over gcc-7.
+- On 64bit Slackware, the gcc5.SlackBuild will detect an existing gcc
+ multilib compiler and will then build a multilib variant of gcc5.
+ If you run pure 64bit Slackware, then a pure 64bit gcc5 package is built.
+
+How to use these gcc5 compilers instead of Slackware's default C and C++?
+Simple:
+In your console or terminal, you 'source' the provided profile script,
+like this (a c-shell compatible script is available as well):
+
+ source /etc/profile.d/gcc5.sh
+
+The command 'source' is equivalent to the dot command ' . '.
+The profile script will (re-)define the common variables that are used
+by make and other programs to determine which binary to run as the compiler:
+
+export CC=gcc-5
+export CPP=cpp-5
+export CXX=g++-5
+export AR=gcc-ar-5
+export NM=gcc-nm-5
+export RANLIB=gcc-ranlib-5
+
+Nothing else needs to be done after sourcing the profile script.
+All you do next is run your compile job as usual in that same console.
+Your program will be compiled with the binaries provided by the gcc5 package.
diff --git a/gcc5/build/gcc5.info b/gcc5/build/gcc5.info
new file mode 100644
index 00000000..9cc92781
--- /dev/null
+++ b/gcc5/build/gcc5.info
@@ -0,0 +1,17 @@
+PRGNAM="gcc5"
+VERSION="5.4.0"
+HOMEPAGE="https://gcc.gnu.org/"
+DOWNLOAD="https://ftp.gnu.org/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2 \
+ http://www.antlr3.org/download/antlr-runtime-3.4.jar \
+ https://sourceware.org/pub/java/ecj-4.9.jar \
+ https://download.savannah.gnu.org/releases/fastjar/fastjar-0.97.tar.gz"
+MD5SUM="4c626ac2a83ef30dfb9260e6f59c2b30 \
+ 0e0318be407e51fdf7ba6777eabfdf73 \
+ 7339f199ba11c941890031fd9981d7be \
+ 62eff959f57f878067aad665ed8213a6"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Eric Hameleers"
+EMAIL="alien@slackware.com"
+