[Bug 231459] security/openssl: fails to link with lld as system linker on i386
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Sep 18 17:30:49 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231459
Bug ID: 231459
Summary: security/openssl: fails to link with lld as system
linker on i386
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: brnrd at freebsd.org
Reporter: emaste at freebsd.org
Assignee: brnrd at freebsd.org
Flags: maintainer-feedback?(brnrd at freebsd.org)
/usr/bin/ld: error: unknown argument: -Bforcearchive
cc: error: linker command failed with exit code 1 (use -v to see invocation)
This happens because OpenSSL tries to detect GNU ld with:
./work/openssl-1.0.2p/Makefile.shared:DETECT_GNU_LD=($(CC) -Wl,-V /dev/null
2>&1 | grep '^GNU ld' )>/dev/null
and provides a different link invocation for non-GNU ld, which ends up with the
-Bforcearchive flag (which is not supported by GNU ld or lld)
See
https://www.sigbus.info/software-compatibility-and-our-own-user-agent-problem.html
for some more info.
A patch like this is probably sufficient:
-./work/openssl-1.0.2p/Makefile.shared:DETECT_GNU_LD=($(CC) -Wl,-V /dev/null
2>&1 | grep '^GNU ld' )>/dev/null
+./work/openssl-1.0.2p/Makefile.shared:DETECT_GNU_LD=($(CC) -Wl,-V /dev/null
2>&1 | grep 'GNU' )>/dev/null
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list