Date: Thu, 4 Jul 2019 15:47:45 +0200 From: Niclas Zeising <zeising+freebsd@daemonic.se> To: p.cigularov@bally-wulff.de, x11@FreeBSD.org Subject: Re: libXrandr, -fPIC compiler option is off Message-ID: <480ea8c4-4c17-f177-b873-f1ae2e5c9274@daemonic.se> In-Reply-To: <4749a02d06bf4f8186623f59ce8f6c88@bally-wulff.de> References: <4749a02d06bf4f8186623f59ce8f6c88@bally-wulff.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-07-04 15:27, p.cigularov@bally-wulff.de wrote: > Petar Cigularov schrieb am 04.07.2019 15:27 > Hello, > > I ran into a problem when linking a software against libXrandr on a FreeBSD 12, x64. It turned out that -fPIC option, for generating position independent code is not per default turned on. > After recompile libXrandr with -fPIC everything linked fine. > I'm writing this because, libXrandr is a shared lib and as such it has to be compiled with -fPIC by default on and I think, it will be better if you change the package default settings to be always on. > Hi! libXrandr is using the default flags from autotools/libtool. Looking at the commit history, this hasn't intentinally changed lately. Furthermore, at least as far as I can tell, it is linked with -fPIC, at least when I run it with poudriere. I also had no problem linking against it, and it is used by quite a number of ports in the FreeBSD ports system, and I haven't had any reports about issues linking against libXrandr. Can you please double check your environment and your build of libXrandr, to make sure it is built properly. Regards -- Niclas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?480ea8c4-4c17-f177-b873-f1ae2e5c9274>