The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/libsodium/m4/ld-output-def.m4

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 # ld-output-def.m4 serial 2
    2 dnl Copyright (C) 2008-2013 Free Software Foundation, Inc.
    3 dnl This file is free software; the Free Software Foundation
    4 dnl gives unlimited permission to copy and/or distribute it,
    5 dnl with or without modifications, as long as this notice is preserved.
    6 
    7 dnl From Simon Josefsson
    8 
    9 # gl_LD_OUTPUT_DEF()
   10 # -------------
   11 # Check if linker supports -Wl,--output-def and define automake
   12 # conditional HAVE_LD_OUTPUT_DEF if it is.
   13 AC_DEFUN([gl_LD_OUTPUT_DEF],
   14 [
   15   AC_CACHE_CHECK([if gcc/ld supports -Wl,--output-def],
   16     [gl_cv_ld_output_def],
   17     [if test "$enable_shared" = no; then
   18        gl_cv_ld_output_def="not needed, shared libraries are disabled"
   19      else
   20        gl_ldflags_save=$LDFLAGS
   21        LDFLAGS="-Wl,--output-def,conftest.def"
   22        AC_LINK_IFELSE([AC_LANG_PROGRAM([])],
   23                    [gl_cv_ld_output_def=yes],
   24                    [gl_cv_ld_output_def=no])
   25        rm -f conftest.def
   26        LDFLAGS="$gl_ldflags_save"
   27      fi])
   28   AM_CONDITIONAL([HAVE_LD_OUTPUT_DEF], test "x$gl_cv_ld_output_def" = "xyes")
   29 ])

Cache object: ab98d587120db4c71e6efe3d1f87861b


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.