Perls tests the compiler during build and adds the lib there. Output: Checking your choice of C compiler and flags for coherency... I've tried to compile and run the following simple program: #include <stdio.h> int main() { printf("Ok\n"); return(0); } I used the command: armeb-softfloat-linux-gnu-gcc -o try -O2 -I/root/nslu2/usr/include -DOVR_DBL_DIG=14 try.c -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc ./try /usr/libexec/gcc/armeb-softfloat-linux-gnu/ld: cannot find -lgdbm
feels like a duplicate of bug #157774 to me, which IMO is already fixed (see other bug)
Looks ok here, marking as FIXED