Et merde.

Positionner CPPFLAGS, CFLAGS et LIBS pour que les packages en construction
trouvent bien le buildir dans lequel ils sont temporairement installés.
Ca marchait sous Linux parcque qu'il y avait déjà un /opt/alliance-5.0
dans le système, mais ça ratait sous Solaris...
This commit is contained in:
Jean-Paul Chaput 2004-07-17 09:32:05 +00:00
parent ca4560306f
commit 1d01c84b84
1 changed files with 7 additions and 4 deletions

View File

@ -3,7 +3,7 @@
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Czo <Olivier.Sirol@lip6.fr> # Copyright (C) 1999, 2000, 2001, 2002, 2003 Czo <Olivier.Sirol@lip6.fr>
# License: GPL (http://www.gnu.org/copyleft/gpl.html) # License: GPL (http://www.gnu.org/copyleft/gpl.html)
# #
# $Id: mkdistrib,v 1.14 2004/07/16 21:18:15 jpc Exp $ # $Id: mkdistrib,v 1.15 2004/07/17 09:32:05 jpc Exp $
# #
# /------------------------------------------------------------------\ # /------------------------------------------------------------------\
# | | # | |
@ -221,11 +221,14 @@
try mkdir -p $TMPDESTDIR/$TARGET $TMPBUILDDIR/$TARGET try mkdir -p $TMPDESTDIR/$TARGET $TMPBUILDDIR/$TARGET
ssh -n $TARGET \ ssh -n $TARGET \
"cd $DISTRIBDIR/$TMPBUILDDIR/$TARGET ; \ "cd $DISTRIBDIR/$TMPBUILDDIR/$TARGET; \
ALLIANCE_TOP=$ALLIANCE_TOP ; export ALLIANCE_TOP ; \ ALLIANCE_TOP=$ALLIANCE_TOP; export ALLIANCE_TOP; \
CPPFLAGS=-I$DISTRIBDIR/$TMPDESTDIR/$TARGET/include; export CPPFLAGS; \
CFLAGS=-I$DISTRIBDIR/$TMPDESTDIR/$TARGET/include; export CFLAGS; \
LIBS=-L$DISTRIBDIR/$TMPDESTDIR/$TARGET/lib; export LIBS; \
MAKE=gmake; export MAKE; \ MAKE=gmake; export MAKE; \
PATH=${PATH}:/usr/ccs/bin; export PATH; \ PATH=${PATH}:/usr/ccs/bin; export PATH; \
../../$NAME/configure --prefix=$ALLIANCE_TOP ; \ ../../$NAME/configure --prefix=$ALLIANCE_TOP --enable-alc-shared; \
gmake DESTDIR=$DISTRIBDIR/$TMPDESTDIR/$TARGET install \ gmake DESTDIR=$DISTRIBDIR/$TMPDESTDIR/$TARGET install \
&& echo Alliance_compilation_OK" 2>&1 | tee $TARGETLOGFILE && echo Alliance_compilation_OK" 2>&1 | tee $TARGETLOGFILE
try grep Alliance_compilation_OK $TARGETLOGFILE try grep Alliance_compilation_OK $TARGETLOGFILE