gcc -Wall -Wno-pointer-sign -march=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o execstack execstack.o checksum.o data.o dso.o dwarf2.o fptr.o hashtab.o mdebug.o stabs.o crc32.o arch-i386.o arch-alpha.o arch-ppc.o arch-ppc64.o arch-sparc.o arch-sparc64.o arch-x86_64.o arch-mips.o arch-s390.o arch-s390x.o arch-arm.o arch-sh.o arch-ia64.o  -lelf
/bin/sh ../libtool --mode=link gcc -Wall -Wno-pointer-sign -march=native -O2 -pipe -fomit-frame-pointer  -Wl,-O1,--sort-common,--as-needed,-z,relro -o prelink -all-static cache.o conflict.o cxx.o doit.o exec.o execle_open.o get.o gather.o layout.o main.o prelink.o reloc.o space.o undo.o undoall.o verify.o canonicalize.o md5.o sha.o checksum.o data.o dso.o dwarf2.o fptr.o hashtab.o mdebug.o stabs.o crc32.o arch-i386.o arch-alpha.o arch-ppc.o arch-ppc64.o arch-sparc.o arch-sparc64.o arch-x86_64.o arch-mips.o arch-s390.o arch-s390x.o arch-arm.o arch-sh.o arch-ia64.o  -lelf
gcc -Wall -Wno-pointer-sign -march=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o prelink -static cache.o conflict.o cxx.o doit.o exec.o execle_open.o get.o gather.o layout.o main.o prelink.o reloc.o space.o undo.o undoall.o verify.o canonicalize.o md5.o sha.o checksum.o data.o dso.o dwarf2.o fptr.o hashtab.o mdebug.o stabs.o crc32.o arch-i386.o arch-alpha.o arch-ppc.o arch-ppc64.o arch-sparc.o arch-sparc64.o arch-x86_64.o arch-mips.o arch-s390.o arch-s390x.o arch-arm.o arch-sh.o arch-ia64.o  -lelf
/usr/bin/ld: cannot find -lelf
collect2: error: ld returned 1 exit status
Makefile:269: recipe for target 'prelink' failed
make[2]: *** [prelink] Error 1
make[2]: Leaving directory '/tmp/yaourt-tmp/abs-prelink/src/prelink/src'
Makefile:175: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp/abs-prelink/src/prelink'
Makefile:121: recipe for target 'all' failed
make: *** [all] Error 2
$ ls -l /usr/lib/libelf.so
lrwxrwxrwx 1 root root 11 Oct 27 20:18 /usr/lib/libelf.so -> libelf.so.1
чё-то нифига не догоняю.

-------------------------------------------------------------------------------------------------------------
файле libtool убрал немного кода со словами "-all-static", и пакет собрался