From: <bac...@li...> - 2007-05-21 06:16:59
|
A NOTE has been added to this issue. ====================================================================== http://bugs.bacula.org/view.php?id=859 ====================================================================== Reported By: psarmstr Assigned To: ====================================================================== Project: bacula Issue ID: 859 Category: configure/build process Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 05-21-2007 01:55 EDT Last Modified: 05-21-2007 02:17 EDT ====================================================================== Summary: Regression testing config script broken on SUNWspro Description: The regression testing configure script is gcc specific and thus doesn't work on Sun Forte Compiler. See patch in "Additional Information". ====================================================================== ---------------------------------------------------------------------- psarmstr - 05-21-07 02:17 ---------------------------------------------------------------------- A better version of the patch: diff -u regress-config.old regress-config --- regress-config.old Mon May 21 05:32:45 2007 +++ regress-config Mon May 21 06:13:34 2007 @@ -7,7 +7,17 @@ CONFIG_SHELL=/bin/sh fi -CFLAGS="-g -O" \ +VERSION="`cc --version | head -1 | awk '{ print $2 }' 2> /dev/null`" + +if [ -n "${VERSION}" -a "${VERSION}" = "(GCC)" ]; then + OPTIMIZE="-O2" + WARNINGS="-Wall" +else + OPTIMIZE="-O" + WARNINGS="-v" +fi + +CFLAGS="-g ${OPTIMIZE} ${WARNINGS}" \ ./configure \ --sbindir=$1/bin \ --sysconfdir=$1/bin \ If you're wondering: -v Causes the compiler to perform more and stricter seman- tic checks, and to enable certain lint-like checks on the named C files. Issue History Date Modified Username Field Change ====================================================================== 05-21-07 01:55 psarmstr New Issue 05-21-07 02:03 psarmstr Issue Monitored: psarmstr 05-21-07 02:17 psarmstr Note Added: 0002498 ====================================================================== |