I mean the flag in the configure line you have used to generate the makefile ./configure --build i486-linux-gnu --prefix=/usr --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info CFLAGS="-g -O2" LDFLAGS="-Wl,-z,defs,--as-needed"
Try with LDFLAGS="-Wl,-z,--as-needed"
I mean the flag in the configure line you have used to generate the makefile \${prefix} /share/ man --infodir= \${prefix} /share/ info CFLAGS="-g -O2" LDFLAGS= "-Wl,-z, defs,-- as-needed"
./configure --build i486-linux-gnu --prefix=/usr --mandir=
Try with LDFLAGS= "-Wl,-z, --as-needed"