On Mon, Oct 03, 2005, Thomas Lotterer wrote:
> %build
> cd pgpsrc
> ( cd libs/pfl
> CC="%{l_cc}" CFLAGS="%{l_cflags -O}" ./configure
> - %{l_make} %{l_mflags} OPT="%{l_cflags -O}" DEBUG=0
> + %{l_make} %{l_mflags} OPT="$CFLAGS" DEBUG=0
> ) || exit $?
> ( cd libs/pgpcdk
> - CC="%{l_cc}" CFLAGS="%{l_cflags -O}" ./configure
> + CC="%{l_cc}" CFLAGS="%{l_cflags -O} -trigraphs" ./configure
> %{l_make} %{l_mflags} headers
> - %{l_make} %{l_mflags} OPT="%{l_cflags -O}" DEBUG=0
> + %{l_make} %{l_mflags} OPT="$CFLAGS" DEBUG=0
> ) || exit $?
> ( cd clients/pgp/shared
> - CC="%{l_cc}" CFLAGS="%{l_cflags -O}" ./configure
> - %{l_make} %{l_mflags} OPT="%{l_cflags -O}" DEBUG=0
> + CC="%{l_cc}" CFLAGS="%{l_cflags -O} -trigraphs" ./configure
> + %{l_make} %{l_mflags} OPT="$CFLAGS" DEBUG=0
> ) || exit $?
> ( cd clients/pgp/cmdline
> - CFLAGS="%{l_cflags -O}"
> + CFLAGS="%{l_cflags -O} -trigraphs"
> case "%{l_platform -t}" in
> *-freebsd* ) CFLAGS="$CFLAGS -pthread" ;;
> esac
> CC="%{l_cc}" CFLAGS="$CFLAGS" LIBS="$LIBS" ./configure
> - %{l_make} %{l_mflags} OPT="%{l_cflags -O}" DEBUG=0
> + %{l_make} %{l_mflags} OPT="$CFLAGS" DEBUG=0
> ) || exit $?
Thomas, this doesn't work: in the first sub-shells the $CFLAGS is not
set (resp. it is available to the "configure" script only there).
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List [email protected]