From 976a2483cd18621842292f7a14bdbf5cd0485fcf Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 9 Aug 2011 17:25:39 +0000 Subject: [PATCH] Made releng/auto_cxx ready for FreeBSD (with bash or "bash" linked to /bin/sh) --- releng/auto_cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releng/auto_cxx b/releng/auto_cxx index c66ab6a7..c26c07b3 100755 --- a/releng/auto_cxx +++ b/releng/auto_cxx @@ -50,12 +50,12 @@ fi # process sample code tests # if test -f "${SAMPLE_CODE_DIR}"/*.cpp; then for SMPL in `ls "${SAMPLE_CODE_DIR}"/*.cpp`; do - CMD_CPL="${CC} -I../ -L ../libisoburn/.libs/ -lisoburn -o ${SMPL}.obj ${SMPL}" + CMD_CPL="${CC} -I../ -L ../libisoburn/.libs/ ${CFLAGS} -lisoburn -o ${SMPL}.obj ${SMPL}" printf "${SELF}: ${CMD_CPL}\n" set +e ${CMD_CPL} RET_CPL="$?" - if [ ${RET_CPL} == 0 -a -f ${SMPL}.obj ]; then + if [ ${RET_CPL} = 0 -a -f ${SMPL}.obj ]; then mv ${SMPL}.obj ${GEN_DATA_DIR} else printf "\nFAIL : ${SELF}: Compilation of ${SMPL}\n"