I am trying to compile symlinks (tar.gz-file), which is a very small tool with one line for compilation: gcc -Wall -Wstrict-prototypes -O2 -N -s -o symlinks symlinks.cwhich gives the error ....    /usr/bin/ld: cannot find -lgcc_s/usr/bin/ld: cannot find -lgcc_scollect2: ld returned 1 exit statusThe output of /sbin/ldconfig -p | grep libgccis libgcc_s.so.1 (libc6) => /lib/i386-linux-gnu/libgcc_s.so.1and trying to include the mentioned directory directlygcc -Wall -Wstrict-prototypes -L /lib/i386-linux-gnu/  -O2 -N -s -o symlinks symlinks.cproduces the same error. Three questions: Why does it not work with the first command, as the lib seems to be in the search pathWhy does including the path itself does not helpHow to fix this?
Linker error: /usr/bin/ld: cannot find -lgcc_s
ubuntu;gcc