Thursday, March 26, 2020

Fedora: build: gcc/cc - /usr/bin/ld: cannot find -lc

cc -std=c99 -Os -Wall -Werror -Wextra -static -c -o pinns.o pinns.c
cc -o ../bin/pinns pinns.o -std=c99 -Os -Wall -Werror -Wextra -static
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:11: ../bin/pinns] Error 1
make[1]: Leaving directory '/home/douglas/cri-o/pinns'
make: *** [Makefile:143: bin/pinns] Error 2

Solve:
$ sudo dnf install glibc-static -y

No comments:

Post a Comment