Преглед на файлове

r12992@catbus: nickm | 2007-05-25 20:39:07 -0400
Oops. we actually _do_ need the extended path; we just do not want to persist it.


svn:r10349

Nick Mathewson преди 17 години
родител
ревизия
62a98c878c
променени са 1 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 4 3
      acinclude.m4

+ 4 - 3
acinclude.m4

@@ -144,6 +144,7 @@ TOR_DEFINE_CODEPATH($tor_cv_library_$1_dir, $1)
 if test -z "$CROSS_COMPILE"; then
 if test -z "$CROSS_COMPILE"; then
   AC_CACHE_CHECK([whether we need extra options to link $1],
   AC_CACHE_CHECK([whether we need extra options to link $1],
                  tor_cv_library_$1_linker_option, [
                  tor_cv_library_$1_linker_option, [
+   orig_LDFLAGS="$LDFLAGS"
    runs=no
    runs=no
    linked_with=nothing
    linked_with=nothing
    if test -d "$tor_cv_library_$1_dir/lib"; then
    if test -d "$tor_cv_library_$1_dir/lib"; then
@@ -154,9 +155,9 @@ if test -z "$CROSS_COMPILE"; then
    for tor_tryextra in "(none)" "-Wl,-R$tor_trydir" "-R$tor_trydir" \
    for tor_tryextra in "(none)" "-Wl,-R$tor_trydir" "-R$tor_trydir" \
                        "-Wl,-rpath,$tor_trydir" ; do
                        "-Wl,-rpath,$tor_trydir" ; do
      if test "$tor_tryextra" = "(none)"; then
      if test "$tor_tryextra" = "(none)"; then
-       LDFLAGS="$tor_saved_LDFLAGS"
+       LDFLAGS="$orig_LDFLAGS"
      else
      else
-       LDFLAGS="$tor_tryextra $tor_saved_LDFLAGS"
+       LDFLAGS="$tor_tryextra $orig_LDFLAGS"
      fi
      fi
      AC_RUN_IFELSE(AC_LANG_PROGRAM([$5], [$6]),
      AC_RUN_IFELSE(AC_LANG_PROGRAM([$5], [$6]),
                    [runnable=yes], [runnable=no])
                    [runnable=yes], [runnable=no])
@@ -169,7 +170,7 @@ if test -z "$CROSS_COMPILE"; then
    if test "$runnable" = no; then
    if test "$runnable" = no; then
      AC_MSG_ERROR([Found linkable $1 in $tor_cv_library_$1_dir, but it does not seem to run, even with -R. Maybe specify another using $7}])
      AC_MSG_ERROR([Found linkable $1 in $tor_cv_library_$1_dir, but it does not seem to run, even with -R. Maybe specify another using $7}])
    fi
    fi
-   LDFLAGS="$tor_saved_LDFLAGS"
+   LDFLAGS="$orig_LDFLAGS"
   ]) dnl end cache check check for extra options.
   ]) dnl end cache check check for extra options.
 
 
   if test "$tor_cv_library_$1_linker_option" != "(none)" ; then
   if test "$tor_cv_library_$1_linker_option" != "(none)" ; then