source: trunk/libs/newlib/src/config/ld-symbolic.m4 @ 503

Last change on this file since 503 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.7 KB
RevLine 
[444]1dnl Copyright (C) 2007 Free Software Foundation, Inc.
2dnl This file is free software, distributed under the terms of the GNU
3dnl General Public License.  As a special exception to the GNU General
4dnl Public License, this file may be distributed as part of a program
5dnl that contains a configuration script generated by Autoconf, under
6dnl the same distribution terms as the rest of that program.
7
8dnl Set SYMBOLIC_LDFLAGS to -Bsymbolic-functions for GNU linker if it
9dnl is supported.
10AC_DEFUN([ACX_PROG_LD_GNU_SYMBOLIC],
11[AC_CACHE_CHECK([if the GNU linker ($LD) supports -Bsymbolic-functions],
12acl_cv_prog_gnu_ld_symbolic, [
13acl_cv_prog_gnu_ld_symbolic=no
14AC_REQUIRE([AC_LIB_PROG_LD_GNU])
15if test x"$with_gnu_ld" = x"yes"; then
16  if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
17    acl_cv_prog_gnu_ld_symbolic=yes
18  fi
19fi])
20if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
21  SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
22else
23  SYMBOLIC_LDFLAGS=''
24fi
25])
26
27dnl Set DYNAMIC_LIST_CPP_NEW_LDFLAGS to --dynamic-list-cpp-new for GNU
28dnl linker if it is supported.
29AC_DEFUN([ACX_PROG_LD_GNU_DYNAMIC_LIST_CPP_NEW],
30[AC_CACHE_CHECK([if the GNU linker ($LD) supports --dynamic-list-cpp-new],
31acl_cv_prog_gnu_ld_dynamic_list_cpp_new, [
32acl_cv_prog_gnu_ld_dynamic_list_cpp_new=no
33AC_REQUIRE([ACX_PROG_LD_GNU_SYMBOLIC])
34if test x"$with_gnu_ld" = x"yes" -a \
35        x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
36  if $LD --help 2>&1 </dev/null | grep dynamic-list-cpp-new 1>&5; then
37    acl_cv_prog_gnu_ld_dynamic_list_cpp_new=yes
38  fi
39fi])
40if test x"$acl_cv_prog_gnu_ld_dynamic_list_cpp_new" = x"yes"; then
41   DYNAMIC_LIST_CPP_NEW_LDFLAGS="$SYMBOLIC_LDFLAGS -Wl,--dynamic-list-cpp-new"
42else
43   DYNAMIC_LIST_CPP_NEW_LDFLAGS=''
44fi
45])
Note: See TracBrowser for help on using the repository browser.