[Bug 268994] [exp-run] Schedule exp run for devel/binutils update to 2.40

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 14 Feb 2023 11:09:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268994

--- Comment #10 from Daniel Engberg <diizzy@FreeBSD.org> ---
Created attachment 240151
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=240151&action=edit
Patch for binutils

This includes previous patch by cy and following changes

- Use DISTVERSION instead of PORTVERSION
- Drop (reset) PORTREVISION
- Define zstd as LIB_DEPENDS rather than DEPENDS
- Add USES= localbase pkgconfig to fix (lib)zstd detection
- Set zstd as default compression algorithm for compressed debug sections
- Enable verbose output during build
- Drop STATIC option, it's unsupported upstream and fails to build [1]

Compile and runtime tested on FreeBSD 13.2-BETA1 (amd64) (make, make
check-plist)
Poudriere testport (default options) OK 12.3-RELEASE (amd64)
Poudriere testport (default options) OK 13.1-RELEASE (i386)

1:
/bin/sh ./libtool  --tag=CC   --mode=link cc -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow  -I/usr/local/include  -O2 -pipe -march=tigerlake
 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing     
 -all-static -fstack-protector-strong  -o windres windres.o resrc.o rescoff.o
resbin.o rcparse.o rclex.o winduni.o resres.o bucomm.o version.o filemode.o
../bfd/libbfd.la ../libiberty/libiberty.a -lfl  /usr/local/lib/libiconv.so
-Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib

ld: error: attempted static link of dynamic object /usr/local/lib/libiconv.so
cc: error: linker command failed with exit code 1 (use -v to see invocation)

*** Notes ***
--enable-threads=yes configure switch seems to be retired since years ago?
Unit tests seems to be broken, disable(?)
error: invalid value 'zlib-gabi' in '--compress-debug-sections=zlib-gabi'

-- 
You are receiving this mail because:
You are on the CC list for the bug.