diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-10-30 17:57:06 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-10-30 17:57:06 +0200 |
| commit | c5bb832c1880d0a0d55c3ba11cf97cc6dff6a78d (patch) | |
| tree | dced3401ffd5ee33acb7e54febec4f390ab2a4b8 /Software/External Repositories/Protobuf/protobuf-c-master/m4/ld-version-script.m4 | |
| parent | b0000c813d6dfac11cf041fca7de1928596f42ae (diff) | |
| download | Tango-c5bb832c1880d0a0d55c3ba11cf97cc6dff6a78d.tar.gz Tango-c5bb832c1880d0a0d55c3ba11cf97cc6dff6a78d.zip | |
Protobuf Compiler API first draft.
Added compiled protobuf & protobuf-c repositories.
Diffstat (limited to 'Software/External Repositories/Protobuf/protobuf-c-master/m4/ld-version-script.m4')
| -rw-r--r-- | Software/External Repositories/Protobuf/protobuf-c-master/m4/ld-version-script.m4 | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Software/External Repositories/Protobuf/protobuf-c-master/m4/ld-version-script.m4 b/Software/External Repositories/Protobuf/protobuf-c-master/m4/ld-version-script.m4 new file mode 100644 index 000000000..f8b4a5c51 --- /dev/null +++ b/Software/External Repositories/Protobuf/protobuf-c-master/m4/ld-version-script.m4 @@ -0,0 +1,53 @@ +# ld-version-script.m4 serial 3 +dnl Copyright (C) 2008-2014 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Simon Josefsson + +# FIXME: The test below returns a false positive for mingw +# cross-compiles, 'local:' statements does not reduce number of +# exported symbols in a DLL. Use --disable-ld-version-script to work +# around the problem. + +# gl_LD_VERSION_SCRIPT +# -------------------- +# Check if LD supports linker scripts, and define automake conditional +# HAVE_LD_VERSION_SCRIPT if so. +AC_DEFUN([gl_LD_VERSION_SCRIPT], +[ + AC_ARG_ENABLE([ld-version-script], + AS_HELP_STRING([--enable-ld-version-script], + [enable linker version script (default is enabled when possible)]), + [have_ld_version_script=$enableval], []) + if test -z "$have_ld_version_script"; then + AC_MSG_CHECKING([if LD -Wl,--version-script works]) + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" + cat > conftest.map <<EOF +foo +EOF + AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], + [accepts_syntax_errors=yes], [accepts_syntax_errors=no]) + if test "$accepts_syntax_errors" = no; then + cat > conftest.map <<EOF +VERS_1 { + global: sym; +}; + +VERS_2 { + global: sym; +} VERS_1; +EOF + AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], + [have_ld_version_script=yes], [have_ld_version_script=no]) + else + have_ld_version_script=no + fi + rm -f conftest.map + LDFLAGS="$save_LDFLAGS" + AC_MSG_RESULT($have_ld_version_script) + fi + AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes") +]) |
