This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

openssl: make sed tool configurable

Those poor sods on systems where /usr/bin/sed is a BSD sed can now do
`make -C deps/openssl/asm SED=gsed`.
  • Loading branch information...
bnoordhuis committed Mar 26, 2013
1 parent 2eb8478 commit 8548920969d351cfb5e4d90956f95ceee724be74
Showing with 2 additions and 1 deletion.
  1. +2 −1 deps/openssl/asm/Makefile
@@ -1,3 +1,4 @@
+SED ?= sed
PERL ?= perl
PERL += -I../openssl/crypto/perlasm -I../openssl/crypto/bn/asm
@@ -111,7 +112,7 @@ x86-win32-masm/%.asm:
.PHONY: all
all: $(OUTPUTS)
# strip trailing whitespace and final blank newline
- sed -sri -e 's/\s+$$/\n/' -e '$$ { /^$$/d }' $^
+ $(SED) -sri -e 's/\s+$$/\n/' -e '$$ { /^$$/d }' $^
clean:
find . -iname '*.asm' -exec rm "{}" \;

0 comments on commit 8548920

Please sign in to comment.