configure: Don't set LDPATH if not needed.
This commit is contained in:
parent
446befbb4d
commit
3a0233d63f
|
@ -14089,16 +14089,22 @@ If you are using Linux, you will need a newer binutils.
|
||||||
{ (exit 1); exit 1; }; }
|
{ (exit 1); exit 1; }; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LDPATH=""
|
||||||
|
|
||||||
case $build_os in
|
case $build_os in
|
||||||
cygwin*|mingw32*)
|
cygwin*|mingw32*)
|
||||||
LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
|
LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
|
||||||
;;
|
;;
|
||||||
darwin*|macosx*)
|
darwin*|macosx*)
|
||||||
LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
|
;;
|
||||||
;;
|
linux*|solaris*) if test -z "$LDRPATH_LOCAL"
|
||||||
|
then
|
||||||
|
LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
|
LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case $host_os in
|
case $host_os in
|
||||||
|
|
15
configure.ac
15
configure.ac
|
@ -1064,13 +1064,22 @@ If you are using Linux, you will need a newer binutils.]
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(LDPATH,"")
|
||||||
case $build_os in
|
case $build_os in
|
||||||
cygwin*|mingw32*)
|
cygwin*|mingw32*)
|
||||||
AC_SUBST(LDPATH,"PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\"") ;;
|
LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
|
||||||
|
;;
|
||||||
darwin*|macosx*)
|
darwin*|macosx*)
|
||||||
AC_SUBST(LDPATH,"DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\"") ;;
|
;;
|
||||||
|
linux*|solaris*) dnl FIXME: What other platforms support $ORIGIN?
|
||||||
|
if test -z "$LDRPATH_LOCAL"
|
||||||
|
then
|
||||||
|
LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
AC_SUBST(LDPATH,"LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\"") ;;
|
LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
dnl Mingw needs explicit msvcrt for linking libwine and winsock for wininet
|
dnl Mingw needs explicit msvcrt for linking libwine and winsock for wininet
|
||||||
|
|
Loading…
Reference in New Issue