diff options
author | Ian Lance Taylor <ian@airs.com> | 2013-01-11 14:36:36 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2013-01-11 14:36:36 +0000 |
commit | 0bf402d505d293fd9ceaa6bf7ca7bd4d910fd545 (patch) | |
tree | 9d92a8f7030fe7448d65f6e1e46461c584dbf8db /gold/configure.ac | |
parent | 02be4619f1326faebdf539a45539ba83e689470c (diff) | |
download | binutils-0bf402d505d293fd9ceaa6bf7ca7bd4d910fd545.zip binutils-0bf402d505d293fd9ceaa6bf7ca7bd4d910fd545.tar.gz binutils-0bf402d505d293fd9ceaa6bf7ca7bd4d910fd545.tar.bz2 |
Fix mingw gold build with plugins enabled
* Makefile.am: Replace -ldl with @DLOPEN_LIBS@.
* configure.ac: Export DLOPEN_LIBS and add headers check.
* plugin.cc: Handle non-dlfcn case.
* Makefile.in: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
* testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/configure.ac')
-rw-r--r-- | gold/configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gold/configure.ac b/gold/configure.ac index 804a474..b03c09d 100644 --- a/gold/configure.ac +++ b/gold/configure.ac @@ -1,6 +1,7 @@ dnl Process this file with autoconf to produce a configure script. dnl -dnl Copyright 2012 Free Software Foundation +dnl Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 +dnl Free Software Foundation, Inc. dnl dnl This file is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -505,6 +506,13 @@ AC_LANG_PUSH(C++) AC_CHECK_HEADERS(tr1/unordered_set tr1/unordered_map) AC_CHECK_HEADERS(ext/hash_map ext/hash_set) AC_CHECK_HEADERS(byteswap.h) + +dnl When plugins enabled dynamic loader interface is required. Check headers +dnl which may provide this interface. In case of dlfcn.h add libdl to link. +AC_CHECK_HEADERS(windows.h) +AC_CHECK_HEADERS(dlfcn.h, [DLOPEN_LIBS="-ldl"], [DLOPEN_LIBS=""]) +AC_SUBST(DLOPEN_LIBS) + AC_CHECK_FUNCS(mallinfo posix_fallocate fallocate readv sysconf times) AC_CHECK_DECLS([basename, ffs, asprintf, vasprintf, snprintf, vsnprintf, strverscmp, strndup, memmem]) |