Код: Выделить всё
CFLAGS := -g -O2 -static
< /code>
Однако во время компиляции я получаю несколько ошибок и предупреждений, таких как: < /p>
./lib/libltp.a(tst_safe_macros.o): In function 'safe_getgrnam':
/home/lin/workspace/ltp-full-20210524/lib/tst_safe_macros.c:268:warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../../lib/libltp.a(safe_macros.o): In function 'safe_getpwnam':
/home/lin/workspace/ltp-full-20210524/lib/safe_macros.c:135: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: error: ld returned 1 exit status
< /code>
Я понимаю, что эти функции (getpwnamПодробнее здесь: https://stackoverflow.com/questions/796 ... etpwnam-ge
Мобильная версия