* Various bug fixes in setup.sh and ld-wrapper.sh.

svn path=/nixpkgs/trunk/; revision=909
This commit is contained in:
Eelco Dolstra 2004-04-02 17:49:44 +00:00
parent 798a009f1d
commit 1550034ac4
5 changed files with 13 additions and 28 deletions

View file

@ -1,18 +1,9 @@
* Bump freetype to 2.1.7 (but it breaks Pango 1.2.5).
* In setup.sh, remove " -a -f ./ltmain.sh" (and then remove ltmain stuff from Subversion)
* Patch development/tools/misc/libtool not to search standard
directories for libraries (like setup.sh does now). [do we want
this?]
* Bug in ld-wrapper: should source in add-flags (like gcc-wrapper) - then fix uml builder
* In setup.sh: move "test -x $configureScript" into "if test -z $configureScript..."
* In setup.sh: remove bogus stopNest in configureW
* In setup.sh: add configureFlagsArray or something
* Inform freedesktop people that Xaw requires Xpm.

View file

@ -23,15 +23,6 @@ fi
installFlags="$makeFlags"
preConfigure() {
for i in $(find . -name "ltmain.sh"); do
echo "fixing libtool script $i"
fixLibtool $i
done
}
preConfigure=preConfigure
postInstall() {
if test "$swigBindings"; then
make swig-py

View file

@ -68,9 +68,10 @@ test -n "$gcc" && echo $gcc > $out/nix-support/orig-gcc
test -n "$glibc" && echo $glibc > $out/nix-support/orig-glibc
cat > $out/nix-support/add-flags <<EOF
NIX_CFLAGS_COMPILE="$cflagsCompile \$NIX_CFLAGS_COMPILE"
NIX_CFLAGS_LINK="$cflagsLink \$NIX_CFLAGS_LINK"
NIX_LDFLAGS="$ldflags \$NIX_LDFLAGS"
export NIX_CFLAGS_COMPILE="$cflagsCompile \$NIX_CFLAGS_COMPILE"
export NIX_CFLAGS_LINK="$cflagsLink \$NIX_CFLAGS_LINK"
export NIX_LDFLAGS="$ldflags \$NIX_LDFLAGS"
export NIX_GLIBC_FLAGS_SET=1
EOF
sed \

View file

@ -4,6 +4,10 @@ if test -n "$NIX_LD_WRAPPER_START_HOOK"; then
. "$NIX_LD_WRAPPER_START_HOOK"
fi
if test -z "$NIX_GLIBC_FLAGS_SET"; then
. @out@/nix-support/add-flags
fi
. @out@/nix-support/utils

View file

@ -311,7 +311,6 @@ fixLibtool() {
configureW() {
if test -n "$configurePhase"; then
$configurePhase
stopNest
return
fi
@ -321,14 +320,13 @@ configureW() {
if test -z "$configureScript"; then
configureScript=./configure
fi
if ! test -x $configureScript; then
echo "no configure script, doing nothing"
return
if ! test -x $configureScript; then
echo "no configure script, doing nothing"
return
fi
fi
if test -z "$dontFixLibtool" -a -f ./ltmain.sh; then
if test -z "$dontFixLibtool"; then
for i in $(find . -name "ltmain.sh"); do
echo "fixing libtool script $i"
fixLibtool $i