* Various bug fixes in setup.sh and ld-wrapper.sh.
svn path=/nixpkgs/trunk/; revision=909
This commit is contained in:
@@ -1,18 +1,9 @@
|
|||||||
* Bump freetype to 2.1.7 (but it breaks Pango 1.2.5).
|
* 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
|
* Patch development/tools/misc/libtool not to search standard
|
||||||
directories for libraries (like setup.sh does now). [do we want
|
directories for libraries (like setup.sh does now). [do we want
|
||||||
this?]
|
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
|
* In setup.sh: add configureFlagsArray or something
|
||||||
|
|
||||||
|
|
||||||
* Inform freedesktop people that Xaw requires Xpm.
|
* Inform freedesktop people that Xaw requires Xpm.
|
||||||
@@ -23,15 +23,6 @@ fi
|
|||||||
installFlags="$makeFlags"
|
installFlags="$makeFlags"
|
||||||
|
|
||||||
|
|
||||||
preConfigure() {
|
|
||||||
for i in $(find . -name "ltmain.sh"); do
|
|
||||||
echo "fixing libtool script $i"
|
|
||||||
fixLibtool $i
|
|
||||||
done
|
|
||||||
}
|
|
||||||
preConfigure=preConfigure
|
|
||||||
|
|
||||||
|
|
||||||
postInstall() {
|
postInstall() {
|
||||||
if test "$swigBindings"; then
|
if test "$swigBindings"; then
|
||||||
make swig-py
|
make swig-py
|
||||||
|
|||||||
@@ -68,9 +68,10 @@ test -n "$gcc" && echo $gcc > $out/nix-support/orig-gcc
|
|||||||
test -n "$glibc" && echo $glibc > $out/nix-support/orig-glibc
|
test -n "$glibc" && echo $glibc > $out/nix-support/orig-glibc
|
||||||
|
|
||||||
cat > $out/nix-support/add-flags <<EOF
|
cat > $out/nix-support/add-flags <<EOF
|
||||||
NIX_CFLAGS_COMPILE="$cflagsCompile \$NIX_CFLAGS_COMPILE"
|
export NIX_CFLAGS_COMPILE="$cflagsCompile \$NIX_CFLAGS_COMPILE"
|
||||||
NIX_CFLAGS_LINK="$cflagsLink \$NIX_CFLAGS_LINK"
|
export NIX_CFLAGS_LINK="$cflagsLink \$NIX_CFLAGS_LINK"
|
||||||
NIX_LDFLAGS="$ldflags \$NIX_LDFLAGS"
|
export NIX_LDFLAGS="$ldflags \$NIX_LDFLAGS"
|
||||||
|
export NIX_GLIBC_FLAGS_SET=1
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
sed \
|
sed \
|
||||||
|
|||||||
@@ -4,6 +4,10 @@ if test -n "$NIX_LD_WRAPPER_START_HOOK"; then
|
|||||||
. "$NIX_LD_WRAPPER_START_HOOK"
|
. "$NIX_LD_WRAPPER_START_HOOK"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -z "$NIX_GLIBC_FLAGS_SET"; then
|
||||||
|
. @out@/nix-support/add-flags
|
||||||
|
fi
|
||||||
|
|
||||||
. @out@/nix-support/utils
|
. @out@/nix-support/utils
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -311,7 +311,6 @@ fixLibtool() {
|
|||||||
configureW() {
|
configureW() {
|
||||||
if test -n "$configurePhase"; then
|
if test -n "$configurePhase"; then
|
||||||
$configurePhase
|
$configurePhase
|
||||||
stopNest
|
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -321,14 +320,13 @@ configureW() {
|
|||||||
|
|
||||||
if test -z "$configureScript"; then
|
if test -z "$configureScript"; then
|
||||||
configureScript=./configure
|
configureScript=./configure
|
||||||
fi
|
if ! test -x $configureScript; then
|
||||||
|
echo "no configure script, doing nothing"
|
||||||
if ! test -x $configureScript; then
|
return
|
||||||
echo "no configure script, doing nothing"
|
fi
|
||||||
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
|
for i in $(find . -name "ltmain.sh"); do
|
||||||
echo "fixing libtool script $i"
|
echo "fixing libtool script $i"
|
||||||
fixLibtool $i
|
fixLibtool $i
|
||||||
|
|||||||
Reference in New Issue
Block a user