configure: Don't set LDPATH if not needed.
This commit is contained in:
parent
446befbb4d
commit
3a0233d63f
|
@ -14089,12 +14089,18 @@ If you are using Linux, you will need a newer binutils.
|
|||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
|
||||
LDPATH=""
|
||||
|
||||
case $build_os in
|
||||
cygwin*|mingw32*)
|
||||
LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
|
||||
;;
|
||||
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\""
|
||||
|
|
15
configure.ac
15
configure.ac
|
@ -1064,13 +1064,22 @@ If you are using Linux, you will need a newer binutils.]
|
|||
)
|
||||
fi
|
||||
|
||||
AC_SUBST(LDPATH,"")
|
||||
case $build_os in
|
||||
cygwin*|mingw32*)
|
||||
AC_SUBST(LDPATH,"PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\"") ;;
|
||||
LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
|
||||
;;
|
||||
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
|
||||
|
||||
dnl Mingw needs explicit msvcrt for linking libwine and winsock for wininet
|
||||
|
|
Loading…
Reference in New Issue