[ANNOUNCEMENT] Updated: binutils-2.34-2 (x86/x86_64)(Test)
Marco Atzeri
marco.atzeri@gmail.com
Sun Apr 12 13:32:04 GMT 2020
Am 12.04.2020 um 11:59 schrieb JonY via Cygwin:
> On 4/12/20 8:46 AM, Marco Atzeri via Cygwin wrote:
>> Am 12.04.2020 um 06:09 schrieb JonY via Cygwin-announce:
>>> The following packages have been uploaded to the Cygwin distribution:
>>>
>>> * binutils-2.34
>>>
>>
>> no plan to reduce the targets ?
>>
>
> For the moment, no. I may try to make libbfd install as a DLL in the future.
>
>
I build it, but most of the tests failed and I did not
investigate further.
attached patch derived from Yaakov's one.
Regards
Marco
-------------- next part --------------
--- origsrc/binutils-gdb/bfd/configure.ac 2020-03-15 02:15:41.000000000 +0100
+++ bfd/configure.ac 2020-03-23 07:38:04.299450100 +0100
@@ -302,8 +302,8 @@ changequote([,])dnl
case "${host}" in
# More hacks to build DLLs on Windows.
*-*-cygwin*)
- SHARED_LDFLAGS="-no-undefined"
- SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
+ SHARED_LDFLAGS="-no-undefined -Wl,--exclude-libs=libiberty.a"
+ SHARED_LIBADD="-Wl,`pwd`/../libiberty/libiberty.a -L`pwd`/../intl -lintl -lcygwin -lkernel32"
;;
# Use built-in libintl on macOS, since it is not provided by libc.
--- origsrc/binutils-gdb/opcodes/configure.ac 2020-03-15 02:19:03.000000000 +0100
+++ opcodes/configure.ac 2020-03-23 07:40:34.539335700 +0100
@@ -175,8 +175,8 @@ changequote([,])dnl
case "${host}" in
*-*-cygwin*)
- SHARED_LDFLAGS="-no-undefined"
- SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
+ SHARED_LDFLAGS="-no-undefined -Wl,--exclude-libs=libiberty.a"
+ SHARED_LIBADD="`pwd`/../bfd/libbfd.la -Wl,`pwd`/../libiberty/libiberty.a -L`pwd`/../intl -lintl -lcygwin"
;;
*-*-darwin*)
SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}"
--- origsrc/binutils-gdb/bfd/configure 2020-03-15 02:15:41.000000000 +0100
+++ bfd/configure 2020-03-29 06:06:37.748775200 +0200
@@ -14570,8 +14570,9 @@ if test "$enable_shared" = "yes"; then
case "${host}" in
# More hacks to build DLLs on Windows.
*-*-cygwin*)
- SHARED_LDFLAGS="-no-undefined"
- SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
+ SHARED_LDFLAGS="-no-undefined -Wl,--exclude-libs=libiberty.a"
+ SHARED_LIBADD="-Wl,`pwd`/../libiberty/libiberty.a -L`pwd`/../intl -lintl -lcygwin -lkernel32"
+
;;
# Use built-in libintl on macOS, since it is not provided by libc.
--- origsrc/binutils-gdb/opcodes/configure 2020-03-15 02:19:03.000000000 +0100
+++ opcodes/configure 2020-03-29 06:07:33.159680000 +0200
@@ -12784,8 +12784,9 @@ if test "$enable_shared" = "yes"; then
case "${host}" in
*-*-cygwin*)
- SHARED_LDFLAGS="-no-undefined"
- SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
+ SHARED_LDFLAGS="-no-undefined -Wl,--exclude-libs=libiberty.a"
+ SHARED_LIBADD="`pwd`/../bfd/libbfd.la -Wl,`pwd`/../libiberty/libiberty.a -L`pwd`/../intl -lintl -lcygwin"
+
;;
*-*-darwin*)
SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}"
-------------- next part --------------
TOOLCHAIN_TARGET="native"
GIT_URI="git://sourceware.org/git/binutils-gdb.git"
GIT_REV=de9c1b7cfe6e57ea8b677dc2de06e83de50f47c2
inherit toolchain git
SRC_DIR=binutils-gdb
NAME="binutils"
VERSION=2.34+1git.de9c1b7cfe
RELEASE=3
CATEGORY="Devel"
SUMMARY="GNU assember, linker, and similar utilities"
DESCRIPTION="This directory contains various GNU compilers, assemblers, linkers,
debuggers, etc., plus their support routines, definitions, and documentation."
HOMEPAGE="http://www.gnu.org/software/binutils/"
# case ${VERSION} in
# *.*.[5-9][0-9])
# SRC_URI="mirror://sourceware/binutils/snapshots/binutils-${VERSION}.tar.bz2" ;;
# *) SRC_URI="mirror://gnu/binutils/binutils-${VERSION}.tar.bz2" ;;
# esac
PATCH_URI+="2.34+1-shared-libs.patch"
# gdb,etc.: https://sourceware.org/ml/binutils/2014-01/msg00341.html
# for shared libbfd/libopcodes, add:
# --enable-shared
CYGCONF_ARGS="
--enable-install-libiberty
--disable-gdb
--disable-libdecnumber
--disable-readline
--disable-sim
--with-system-zlib
--enable-shared
lt_cv_deplibs_check_method=pass_all
"
src_install() {
cd ${B}
cyginstall
# for shared libbfd/libopcodes, add:
# APIs are unstable, do not allow linking against DLLs
rm -f ${D}/usr/lib/*.dll.a
sed -i -e '/^library_names=/d' ${D}/usr/lib/lib*.la
}
More information about the Cygwin
mailing list