cc -shared srs2.lo sha1.lo -Wl,-soname -Wl,libsrs2.so.0 -o .libs/libsrs2.so.0.0.0
/usr/bin/ld: sha1.lo: relocation R_X86_64_PC32 against `__stack_chk_guard@@FBSD_1.0' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
I made a local mod just bumping PORTREVISION and adding
and it compiles fine. I'm not sure if that's 100% correct.
Created attachment 180704 [details]
This patch fixes the real cause.
Disable separate build of libsrs2.a. It is already built as part of libsrs2.la and the two targets step on each other's toes possibly causing link failures.
A commit references this bug:
Date: Mon Apr 24 17:20:32 UTC 2017
New revision: 439335
mail/libsrs2: fix linking error...
- ... by disabling separate build of libsrs2.a
Reported by: ler
Submitted by: tijl