Hi All,
I'm having this weird issue in rawhide / f24 where I get the following
error:
ldd -r /usr/lib64/libsfml-graphics.so
<snip>
undefined symbol: __cpu_model (/usr/lib64/libsfml-graphics.so)
I've found this out by build failures like this one:
/usr/bin/ld: conftest: hidden symbol `__cpu_model' in
/usr/lib/gcc/x86_64-redhat-linux/6.0.0/libgcc.a(cpuinfo.o) is referenced by DSO
/usr/bin/ld: final link failed: Bad value
I've gone closely over the CFLAGS and LDFLAGS for SFML
and the full rpm config flags are used, including
passing -fPIC when building the object files and
passing both -fPIC and -shared when linking the .so file.
I've tracked the root cause of this down to a call
to __builtin_cpu_supports("sse2") in the SFML code,
if I remove that call, all is well.
Any hints on what is going on here appreciated.
Note I already have a fix, SFML only calls
__builtin_cpu_supports("sse2") when building with
-msse2, so the whole call can simply be replaced
by "1", but I still would like to know what
is going on here.
Regards,
Hans
--
devel mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]