Hi,

On 02-04-15 15:03, Jakub Jelinek wrote:
On Thu, Apr 02, 2015 at 02:59:01PM +0200, Hans de Goede wrote:
Hi,

ClanLib currently fails to build properly on rawhide, I've narrowed
the problem down to a link error while building a conftest from
the configure script:

configure:15948: g++ -o conftest  -I/usr/include/freetype2  -Wl,-z,relro 
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld conftest.cpp -lfreetype  >&5
/usr/bin/ld: /tmp/ccKrsAte.o: relocation R_X86_64_PC32 against undefined symbol 
`FT_Init_FreeType' can not be used when making a shared object; recompile with 
-fPIC

I'm not sure what is happening here, any hints to help address this
would be appreciated.

Packaging error.

Actually a bug in the configure script of the package :)

  You are passing down the LDFLAGS (aka %{__global_ldflags})
from redhat-rpm-config, but not CFLAGS/CXXFLAGS (aka %{optflags} or 
$RPM_OPT_FLAGS).
For compilation and linking in the same compiler driver invocation you need to 
pass
both.

Thanks that did the trick.

Regards,

Hans
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Reply via email to