how to link with old versions of glibc?

Florian Weimer fweimer@redhat.com
Wed May 20 14:22:25 GMT 2020


* Paul Zimmermann:

> zimmerma@tomate:/tmp/src-FixCRlibm$ gcc -Wall -Wextra -O0 main.c dummy.o -DUSE_LIBM /localdisk/zimmerma/glibc-2.28/build/math/libm.a
> /usr/bin/ld: /localdisk/zimmerma/glibc-2.28/build/math/libm.a(e_log.o): in function `__ieee754_log_ifunc':
> e_log.c:(.text+0x3ee): undefined reference to `_dl_x86_cpu_features'
> collect2: error: ld returned 1 exit status

Do you want to link dynamically or statically?  The above command line
is inconsistent: linking has to be either fully dynamic or fully static
as far as glibc is concerned.

Thanks,
Florian



More information about the Libc-help mailing list