--- bestcrypt-1.6_p10.ebuild 2006-12-06 23:24:07.000000000 +0200 +++ bestcrypt-1.6_p10-r1.ebuild 2007-01-18 14:39:08.000000000 +0200 @@ -40,6 +40,8 @@ src_unpack() { unpack ${A} cd "${S}" + epatch "${FILESDIR}/${P}-kernel-version.patch" + if use x86; then epatch "${WORKDIR}/bcrypt-rc6-serpent.diff" @@ -49,6 +51,7 @@ src_unpack() { } src_compile() { + append-flags -fno-strict-aliasing filter-flags -fforce-addr emake -C kgsha CPP="$(tc-getCXX)" EXTRA_CXXFLAGS="${CXXFLAGS}" || die "library compile failed" @@ -58,12 +61,11 @@ src_compile() { # Don't put stack protection in the kernel - it just is bad _filter-hardened -fstack-protector-all -fstack-protector - emake -C mod SYMSRC=bc_dev${KV_MAJOR}${KV_MINOR}.c bc_dev.ver EXTRA_CFLAGS="${CFLAGS}" \ - || die "compile failed" - emake -C mod OBJS="bc_dev${KV_MAJOR}${KV_MINOR}.o bc_mgr.o" \ KERNEL_DIR=${KV_DIR} KEXT=${KV_OBJ} CC=$(tc-getCC) LD=$(tc-getLD) \ - AS=$(tc-getAS) CPP=$(tc-getCXX) EXTRA_CFLAGS="${CFLAGS}" || die "compile failed" + AS=$(tc-getAS) CPP=$(tc-getCXX) EXTRA_CFLAGS="${CFLAGS}" \ + KVER=${KV_MAJOR}.${KV_MINOR} \ + || die "compile failed" einfo "Modules compiled" }