--- /home/flame/devel/gentoo-x86/app-arch/unzip/unzip-5.52-r1.ebuild 2006-02-15 12:39:46.000000000 +0100 +++ unzip-5.52-r1.ebuild 2006-03-19 18:55:50.000000000 +0100 @@ -19,13 +19,15 @@ unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-no-exec-stack.patch - append-lfs-flags #104315 sed -i \ - -e "s:-O3:${CFLAGS}:" \ + -e 's:-O3:${CFLAGS}:' \ -e "s:CC=gcc :CC=$(tc-getCC) :" \ -e "s:LD=gcc :LD=$(tc-getCC) :" \ - -e "s:-O :${CFLAGS} :" \ + -e 's:-O :${CFLAGS} :' \ -e "s:LF2 = -s:LF2 = :" \ + -e 's:LF = :LF = ${LDFLAGS} :' \ + -e 's:SL = :SL = ${LDFLAGS} :' \ + -e 's:FL = :FL = ${LDFLAGS} :' \ unix/Makefile \ || die "sed unix/Makefile failed" } @@ -41,6 +43,7 @@ *-darwin*) TARGET=macosx ;; *) die "Unknown target, you suck" ;; esac + append-lfs-flags #104315 emake -f unix/Makefile ${TARGET} || die "emake failed" }