Skip to content

Commit

Permalink
app-arch/unzip: expand toolchain sed to cover more cases #575710
Browse files Browse the repository at this point in the history
  • Loading branch information
vapier committed Feb 28, 2016
1 parent 68d3cb1 commit f30bed5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app-arch/unzip/unzip-6.0-r3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}"/${P}-no-exec-stack.patch
use natspec && epatch "${FILESDIR}/${PN}-6.0-natspec.patch" #275244
sed -i \
sed -i -r \
-e '/^CFLAGS/d' \
-e '/CFLAGS/s:-O[0-9]\?:$(CFLAGS) $(CPPFLAGS):' \
-e '/CFLAGS/s:-O[0-9]?:$(CFLAGS) $(CPPFLAGS):' \
-e '/^STRIP/s:=.*:=true:' \
-e "s:\<CC=gcc\>:CC=\"$(tc-getCC)\":" \
-e "s:\<LD=gcc\>:LD=\"$(tc-getCC)\":" \
-e "s:\<AS=gcc\>:AS=\"$(tc-getCC)\":" \
-e "s:\<CC *= *\"?g?cc2?\"?\>:CC=\"$(tc-getCC)\":" \
-e "s:\<LD *= *\"?(g?cc2?|ld)\"?\>:LD=\"$(tc-getCC)\":" \
-e "s:\<AS *= *\"?(g?cc2?|as)\"?\>:AS=\"$(tc-getCC)\":" \
-e 's:LF2 = -s:LF2 = :' \
-e 's:LF = :LF = $(LDFLAGS) :' \
-e 's:SL = :SL = $(LDFLAGS) :' \
Expand Down

0 comments on commit f30bed5

Please sign in to comment.