Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 347931 | Differences between
and this patch

Collapse All | Expand All

(-)a/gold/configure (-3 / +61 lines)
Lines 7193-7205 if test "x$ac_cv_header_dlfcn_h" = x""yes; then : Link Here
7193
  cat >>confdefs.h <<_ACEOF
7193
  cat >>confdefs.h <<_ACEOF
7194
#define HAVE_DLFCN_H 1
7194
#define HAVE_DLFCN_H 1
7195
_ACEOF
7195
_ACEOF
7196
 DLOPEN_LIBS="-ldl"
7196
7197
else
7198
  DLOPEN_LIBS=""
7199
fi
7197
fi
7200
7198
7201
done
7199
done
7202
7200
7201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7202
$as_echo_n "checking for library containing dlopen... " >&6; }
7203
if test "${ac_cv_search_dlopen+set}" = set; then :
7204
  $as_echo_n "(cached) " >&6
7205
else
7206
  ac_func_search_save_LIBS=$LIBS
7207
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208
/* end confdefs.h.  */
7209
7210
/* Override any GCC internal prototype to avoid an error.
7211
   Use char because int might match the return type of a GCC
7212
   builtin and then its argument prototype would still apply.  */
7213
#ifdef __cplusplus
7214
extern "C"
7215
#endif
7216
char dlopen ();
7217
int
7218
main ()
7219
{
7220
return dlopen ();
7221
  ;
7222
  return 0;
7223
}
7224
_ACEOF
7225
for ac_lib in '' dl dld; do
7226
  if test -z "$ac_lib"; then
7227
    ac_res="none required"
7228
  else
7229
    ac_res=-l$ac_lib
7230
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7231
  fi
7232
  if ac_fn_cxx_try_link "$LINENO"; then :
7233
  ac_cv_search_dlopen=$ac_res
7234
fi
7235
rm -f core conftest.err conftest.$ac_objext \
7236
    conftest$ac_exeext
7237
  if test "${ac_cv_search_dlopen+set}" = set; then :
7238
  break
7239
fi
7240
done
7241
if test "${ac_cv_search_dlopen+set}" = set; then :
7242
7243
else
7244
  ac_cv_search_dlopen=no
7245
fi
7246
rm conftest.$ac_ext
7247
LIBS=$ac_func_search_save_LIBS
7248
fi
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7250
$as_echo "$ac_cv_search_dlopen" >&6; }
7251
ac_res=$ac_cv_search_dlopen
7252
if test "$ac_res" != no; then :
7253
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7254
7255
fi
7256
7257
case "$ac_cv_search_dlopen" in
7258
  no*) DLOPEN_LIBS="";;
7259
  *)   DLOPEN_LIBS="$ac_cv_search_dlopen";;
7260
esac
7203
7261
7204
7262
7205
for ac_func in mallinfo posix_fallocate fallocate readv sysconf times
7263
for ac_func in mallinfo posix_fallocate fallocate readv sysconf times

Return to bug 347931