From 9ef5e0b7b31bb2a37222e58a21f0b2439ab22a9f Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sun, 12 Mar 2017 16:51:13 +0100 Subject: [PATCH] (Commandfile) add parameters: cxxflags, ldflags --- Commandfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Commandfile b/Commandfile index 6b1c2ca..c7ec082 100644 --- a/Commandfile +++ b/Commandfile @@ -9,8 +9,12 @@ command 'phpize', command 'configure', description: 'executes "configure" to prepare build', + parameters: { + cxxflags: { default: "-ggdb -Wall -Wno-write-strings" }, + ldflags: { default: "-ggdb" }, + }, script: <<-eof - bash -c 'cd /data/build; ../v8js/configure `bash -c "if test -d /opt/libv8-*; then echo -n --with-v8js=; echo /opt/libv8-*; fi"` `test -d "/usr/lib64" && echo --with-libdir=lib64` CXXFLAGS="-Wall -Wno-write-strings"' + bash -c 'cd /data/build; ../v8js/configure `bash -c "if test -d /opt/libv8-*; then echo -n --with-v8js=; echo /opt/libv8-*; fi"` `test -d "/usr/lib64" && echo --with-libdir=lib64` CXXFLAGS="%{cxxflags}" LDFLAGS="%{ldflags}"' eof command 'clean',