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. 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.
Jakub
--
devel mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct