build native qc-- version only (with ocamlopt). This removes the runtime dependency on ocaml.
svn path=/nixpkgs/trunk/; revision=4682
This commit is contained in:
parent
1fa4c66b73
commit
3c68c34ee7
|
@ -6,17 +6,26 @@ MKFLAGS="-w$lua/include/lauxlib.h,$lua/include/luadebug.h,$lua/include/lua.h,$lu
|
|||
|
||||
buildPhase() {
|
||||
mk timestamps
|
||||
mk $MKFLAGS all all.opt
|
||||
mk $MKFLAGS all.opt
|
||||
}
|
||||
|
||||
installPhase() {
|
||||
mk $MKFLAGS install install.opt
|
||||
find $out -name \*.a -exec echo stripping {} \; \
|
||||
mk $MKFLAGS install.opt
|
||||
|
||||
for file in $out/bin/*.opt; do
|
||||
mv $file ${file%.opt}
|
||||
done
|
||||
|
||||
find $out/man -type f -exec gzip -9 {} \;
|
||||
|
||||
find $out -name \*.a -exec echo stripping {} \; \
|
||||
-exec strip -S {} \; || fail
|
||||
patchELF $out
|
||||
|
||||
patchELF $out
|
||||
}
|
||||
|
||||
buildPhase=buildPhase
|
||||
installPhase=installPhase
|
||||
checkPhase="mk $MKFLAGS test.opt"
|
||||
|
||||
genericBuild
|
||||
|
|
|
@ -107,3 +107,15 @@ diff -ur qc--20060131.orig/doc/mkfile qc--20060131/doc/mkfile
|
|||
|
||||
release.tex:D: release.nw
|
||||
noweave -delay $prereq > $target
|
||||
diff -ur qc--20060131.orig/mkfile qc--20060131/mkfile
|
||||
--- qc--20060131.orig/mkfile 2005-07-01 22:29:52.000000000 +0200
|
||||
+++ qc--20060131/mkfile 2006-02-02 19:15:53.000000000 +0100
|
||||
@@ -97,7 +97,7 @@
|
||||
cd test2 && NPROC=1 mk $MKFLAGS all
|
||||
|
||||
test.opt:V: all.opt
|
||||
- cd test2 && NPROC=1 mk QC=../bin/qc--.opt $MKFLAGS all
|
||||
+ cd test2 && NPROC=1 mk $MKFLAGS QC=../bin/qc--.opt all
|
||||
|
||||
coverage: test2/ocamlprof.dump
|
||||
rm -f $target
|
||||
|
|
Loading…
Reference in New Issue