Skip to content

Commit

Permalink
* config-ml.in (CC, CXX): Avoid trailing whitespace.
Browse files Browse the repository at this point in the history
(LD_LIBRARY_PATH, SHLIB_PATH): Adjust for multilibs and export to
sub-configures.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35864 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
aoliva committed Aug 22, 2000
1 parent 32e3a0f commit 883e4a5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2000-08-22 Alexandre Oliva <aoliva@redhat.com>

* config-ml.in (CC, CXX): Avoid trailing whitespace.
(LD_LIBRARY_PATH, SHLIB_PATH): Adjust for multilibs and export to
sub-configures.

2000-08-21 DJ Delorie <dj@redhat.com>

* MAINTAINERS: Add self as a libiberty maintainer
Expand Down
39 changes: 36 additions & 3 deletions config-ml.in
Original file line number Diff line number Diff line change
Expand Up @@ -753,11 +753,11 @@ if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then
break
fi
done
ml_config_env='CC="${CC_} $flags" CXX="${CXX_} $flags"'
ml_config_env='CC="${CC_}$flags" CXX="${CXX_}$flags"'

if [ "${with_target_subdir}" = "." ]; then
CC_=$CC
CXX_=$CXX
CC_=$CC' '
CXX_=$CXX' '
else
# Create a regular expression that matches any string as long
# as ML_POPDIR.
Expand Down Expand Up @@ -786,6 +786,39 @@ if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then
esac
done

if test "x${LD_LIBRARY_PATH+set}" = xset; then
LD_LIBRARY_PATH_=
for arg in `echo "$LD_LIBRARY_PATH" | tr ':' ' '`; do
case "$arg" in
"${ML_POPDIR}"/*)
arg=`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`
;;
esac
if test "x$LD_LIBRARY_PATH_" != x; then
LD_LIBRARY_PATH_=$LD_LIBRARY_PATH_:$arg
else
LD_LIBRARY_PATH_=$arg
fi
done
ml_config_env="$ml_config_env LD_LIBRARY_PATH=$LD_LIBRARY_PATH_"
fi

if test "x${SHLIB_PATH+set}" = xset; then
SHLIB_PATH_=
for arg in `echo "$SHLIB_PATH" | tr ':' ' '`; do
case "$arg" in
"${ML_POPDIR}"/*)
arg=`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`
;;
esac
if test "x$SHLIB_PATH_" != x; then
SHLIB_PATH_=$SHLIB_PATH_:$arg
else
SHLIB_PATH_=$arg
fi
done
ml_config_env="$ml_config_env SHLIB_PATH=$SHLIB_PATH_"
fi
fi

if eval ${ml_config_env} ${ml_config_shell} ${ml_recprog} \
Expand Down

0 comments on commit 883e4a5

Please sign in to comment.