Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Feb 2019 04:25:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 235590] devel/cpu_features: build with CFLAGS=-fPIC
Message-ID:  <bug-235590-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235590

            Bug ID: 235590
           Summary: devel/cpu_features: build with CFLAGS=3D-fPIC
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: skreuzer@FreeBSD.org
          Reporter: meta@FreeBSD.org
          Assignee: skreuzer@FreeBSD.org
             Flags: maintainer-feedback?(skreuzer@FreeBSD.org)

Created attachment 201829
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D201829&action=
=3Dedit
patch

Unless devel/cpu_features is built with -fPIC option, applications that lin=
ks
to libcpu_features.a fails to build. No ports depends on libcpu_features.a =
so
far but a port I'm creating depends on the library.

/usr/bin/ld: error: can't create dynamic relocation R_X86_64_64 against loc=
al
symbol in readonly segment; recompile object files with -fPIC
>>> defined in /usr/local/lib/libcpu_features.a(cpuinfo_x86.c.o)
>>> referenced by cpuinfo_x86.c
>>>               cpuinfo_x86.c.o:(.rodata+0x8) in archive /usr/local/lib/l=
ibcpu_features.a

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-235590-7788>