commit 68c7e5f
chld
·
2026-08-29 15:36:29 +0000 UTC
parent 89e0bdb
binutils: init
3 files changed,
+69,
-0
+29,
-0
1@@ -0,0 +1,29 @@
2+--- configure
3++++ configure
4+@@ -5341,9 +5341,8 @@
5+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
6+ $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
7+ if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
8+- $as_echo_n "(cached) " >&6
9+-else
10+- cat >conftest.adb <<EOF
11++ $as_echo_n "(cached) " >&6
12++ fi
13+ procedure conftest is begin null; end conftest;
14+ EOF
15+ acx_cv_cc_gcc_supports_ada=no
16+@@ -5355,14 +5354,6 @@
17+ # Other compilers, like HP Tru64 UNIX cc, exit successfully when
18+ # given a .adb file, but produce no object file. So we must check
19+ # if an object file was really produced to guard against this.
20+-errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
21+-if test x"$errors" = x && test -f conftest.$ac_objext; then
22+- acx_cv_cc_gcc_supports_ada=yes
23+-fi
24+-rm -f conftest.*
25+-fi
26+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
27+-$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
28+
29+ if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
30+ have_gnat=yes
+6,
-0
1@@ -0,0 +1,6 @@
2+name: binutils
3+description: a 2016-era GNU binutils (mainly for compiling older Linux kernels)
4+license: GPL-3.0-or-later
5+upstream: https://ftp.gnu.org/gnu/binutils
6+version: 2.28
7+maintainer:
+34,
-0
1@@ -0,0 +1,34 @@
2+#!/bin/sh -ue
3+NAME=binutils
4+VERSION=2.28
5+RELEASE=1
6+SOURCE="https://ftp.gnu.org/gnu/${NAME}/${NAME}-${VERSION}.tar.gz
7+ ada-test.patch"
8+
9+build(){
10+ find . -name config.cache -type f -delete
11+ gmake clean
12+ gmake distclean
13+
14+ CFLAGS='-static' PREFIX="$PREFIX" LDFLAGS='-static' CC="cc" ./configure \
15+ --prefix="$PREFIX" \
16+ --enable-static-link \
17+ --disable-libada \
18+ --disable-all-targets \
19+ --enable-targets=x86_64-linux \
20+ --disable-gprof \
21+ --disable-gdb \
22+ --disable-gdbserver \
23+ --enable-gas \
24+ --disable-ld \
25+ --disable-nm \
26+ --disable-nls \
27+ --disable-shared \
28+ --enable-static
29+
30+ gmake LDFLAGS='-static' V=1 configure-host
31+ gmake LDFLAGS='-static -all-static' V=1
32+ doas gmake LDFLAGS='-static -all-static' PREFIX="$PREFIX" DESTDIR="$PKG" V=1 install
33+}
34+
35+. ${0%/*}/../../libsh/libdmake.sh