Bug 234718

Summary: devel/jna: does not build on i386 with lld as system linker
Product: Ports & Packages Reporter: Ed Maste <emaste>
Component: Individual Port(s)Assignee: freebsd-ports-bugs mailing list <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 214864    

Description Ed Maste freebsd_committer 2019-01-07 22:31:56 UTC
http://package18.nyi.freebsd.org/build.html?mastername=headi386PR214864-default&build=2019-01-05_21h00m02s
http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_21h00m02s/logs/errors/jna-4.5.1.log

     [exec] ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
     [exec] >>> defined in /wrkdirs/usr/ports/devel/jna/work/jna-4.5.1/build/native-freebsd-x86/libffi/.libs/libffi.a(win32.o)
     [exec] >>> referenced by win32.o:(.text+0x3F8) in archive /wrkdirs/usr/ports/devel/jna/work/jna-4.5.1/build/native-freebsd-x86/libffi/.libs/libffi.a
     [exec] 
...
Comment 1 commit-hook freebsd_committer 2019-04-28 11:04:44 UTC
A commit references this bug:

Author: antoine
Date: Sun Apr 28 11:04:25 UTC 2019
New revision: 500303
URL: https://svnweb.freebsd.org/changeset/ports/500303

Log:
  Fix build on i386 with lld

  PR:		234718

Changes:
  head/devel/jna/files/patch-native_Makefile