i686-pc-linux-gnu-gcc -c -I/usr/include -I/usr/inc32 -I/usr/kerberos/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.36\" -DXS_VERSION=\"1.36\" -fPIC "-I/usr/lib/perl5/5.12.3/i686-linux/CORE" SSLeay.c Please drop -pipe -O2 -g and add patch to respect user cflags.
It also hardcodes the libdir, which causes failure, when you try to cross-compile for 32bit on amd64: LD_RUN_PATH="/usr/lib" x86_64-pc-linux-gnu-gcc -shared -march=native -O2 -pipe -m32 -Wl,--as-needed -Wl,--hash-style=gnu -m32 SSLeay.o -Wl,--as-needed -Wl,--hash-style=gnu -m32 -o blib/arch/auto/Net/SSLeay/SSLeay.so \ -L/usr -L/usr/lib -lssl -lcrypto -lz
This is related to bug #416339 where I propose a fix to the libdir issue.
Fixed in 0.480.0-r1 Thanks