Bonjour,
Ce sujet est la suite en français de la discussion commencée avec Francois_C sur
http://registry.gimp.org/node/24520 au sujet de la compilation de greffons.
**************************************************************************************************
Contenu de profile pour 32 bits pour compiler des greffons en C
# Copyright (C) 2001, 2002 Earnie Boyd <earnie@users.sf.net>
# This file is part of the Minimal SYStem.
#
http://www.mingw.org/msys.shtml#
# File: profile
# Description: Shell environment initialization script
# Last Revised: 2002.05.04
if [ -z "$MSYSTEM" ]; then
MSYSTEM=MINGW32
fi
# My decision to add a . to the PATH and as the first item in the path list
# is to mimick the Win32 method of finding executables.
#
# I filter the PATH value setting in order to get ready for self hosting the
# MSYS runtime and wanting different paths searched first for files.
if [ $MSYSTEM == MINGW32 ]; then
export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH"
else
export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH"
fi
if [ -z "$USERNAME" ]; then
LOGNAME="`id -un`"
else
LOGNAME="$USERNAME"
fi
# Set up USER's home directory
if [ -z "$HOME" ]; then
HOME="/home/$LOGNAME"
fi
if [ ! -d "$HOME" ]; then
mkdir -p "$HOME"
cp /etc/inputrc.default "$HOME"/.inputrc
fi
if [ "x$HISTFILE" == "x/.bash_history" ]; then
HISTFILE=$HOME/.bash_history
fi
################################################################
export PKG_CONFIG_PATH="/mingw/lib/pkgconfig:$PKG_CONFIG_PATH"
CVS_RSH=ssh
CFLAGS="-pipe -O2 -mms-bitfields -march=i686 -s"
LDFLAGS="-mwindows"
export PYTHONPATH="/python:PYTHONPATH"
export PATH="/python:$PATH"
export PATH="/perl/bin:$PATH"
export HOME LOGNAME MSYSTEM HISTFILE CFLAGS LDFLAGS PKG_CONFIG_PATH CVS_RSH PYTHONPATH
################################################################
export HOME LOGNAME MSYSTEM HISTFILE
for i in /etc/profile.d/*.sh ; do
if [ -f $i ]; then
. $i
fi
done
export MAKE_MODE=unix
export PS1='\[\033]0;$MSYSTEM:\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
alias clear=clsb
cd "$HOME"
**************************************************************************************************
En ce qui concerne Msys/MinGW, je peux te faire une archive des versions que j'utilise depuis 3 jours (elles semblent fonctionner sans problème, pour MinGW j'ai adapté une archive existante créée pour Gimp).