Before: prefix=/usr exec_prefix=${prefix} libdir=/usr/lib includedir=/usr/include After: prefix=/usr exec_prefix=/usr libdir=${exec_prefix}/lib includedir=${prefix}/include Numbered the other patch file. Signed-off-by: Rosen Penev <rosenp@gmail.com>