Commit 200affbf authored by Ondřej Surý's avatar Ondřej Surý

Remove version-script support to remove additional complexity it introduces...

Remove version-script support to remove additional complexity it introduces (it's not really needed when we hide internal symbols)
parent df729089
......@@ -55,9 +55,6 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) # call AM_PROG_AR only if available
AC_PROG_LIBTOOL
LT_INIT
# Use -version-script if supported
gl_LD_VERSION_SCRIPT
# Use pkg-config
m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], [AC_SUBST([pkgconfigdir], ['${libdir}/pkgconfig'])])
AC_CONFIG_FILES([src/libknot.pc
......
# 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")
])
......@@ -94,7 +94,6 @@ libknot_internal_la_HEADERS = \
# dynamic: libknot sources
libknot_la_SOURCES = \
libknot.map \
libknot/binary.c \
libknot/consts.c \
libknot/descriptor.c \
......@@ -158,10 +157,6 @@ libknot_la_CFLAGS = $(AM_CFLAGS)
libknot_la_LDFLAGS = $(AM_LDFLAGS) $(libknot_VERSION_INFO) $(lmdb_LIBS)
libknot_la_LIBADD = dnssec/libdnssec.la zscanner/libzscanner.la libknot-internal.la
if HAVE_LD_VERSION_SCRIPT
libknot_la_LDFLAGS += -Wl,--version-script,$(srcdir)/libknot.map
endif
# pkg-config
pkgconfig_DATA = libknot.pc
......
KNOT_2.0
{
global:
KNOT_DUMP_STYLE_DEFAULT;
KNOT_TSIG_FUDGE_DEFAULT;
KNOT_TSIG_MAX_DIGEST_SIZE;
knot_binary_dup;
knot_binary_free;
knot_binary_from_base64;
knot_binary_from_string;
knot_compr_put_dname;
knot_copy_key_params;
knot_crypto_cleanup;
knot_crypto_cleanup_thread;
knot_crypto_cleanup_threads;
knot_crypto_init;
knot_crypto_init_threads;
knot_crypto_load_engines;
knot_crypto_unload_engines;
knot_dname_align;
knot_dname_cat;
knot_dname_cmp;
knot_dname_cmp_wire;
knot_dname_copy;
knot_dname_copy_part;
knot_dname_free;
knot_dname_from_str;
knot_dname_in;
knot_dname_is_equal;
knot_dname_is_sub;
knot_dname_is_wildcard;
knot_dname_labels;
knot_dname_lf;
knot_dname_matched_labels;
knot_dname_parse;
knot_dname_prefixlen;
knot_dname_realsize;
knot_dname_replace_suffix;
knot_dname_size;
knot_dname_to_lower;
knot_dname_to_str;
knot_dname_to_wire;
knot_dname_unpack;
knot_dname_wire_check;
knot_dnssec_alg_names;
knot_dnssec_algorithm_is_zonesign;
knot_dnssec_init_default_policy;
knot_dnssec_key_free;
knot_dnssec_key_from_params;
knot_dnssec_policy_refresh_time;
knot_dnssec_policy_set_sign_lifetime;
knot_dnssec_sign_add;
knot_dnssec_sign_free;
knot_dnssec_sign_init;
knot_dnssec_sign_new;
knot_dnssec_sign_size;
knot_dnssec_sign_verify;
knot_dnssec_sign_write;
knot_edns_add_option;
knot_edns_check_record;
knot_edns_client_subnet_create;
knot_edns_client_subnet_parse;
knot_edns_do;
knot_edns_get_ext_rcode;
knot_edns_get_payload;
knot_edns_get_version;
knot_edns_has_nsid;
knot_edns_has_option;
knot_edns_init;
knot_edns_set_do;
knot_edns_set_ext_rcode;
knot_edns_set_payload;
knot_edns_set_version;
knot_edns_wire_size;
knot_free_key_params;
knot_get_key_type;
knot_get_obsolete_rdata_descriptor;
knot_get_rdata_descriptor;
knot_getline;
knot_is_valid_signature;
knot_keytag;
knot_layer_begin;
knot_layer_consume;
knot_layer_finish;
knot_layer_produce;
knot_layer_reset;
knot_load_key_params;
knot_lookup_by_id;
knot_lookup_by_name;
knot_map_errno;
knot_map_errno_internal;
knot_memdup;
knot_nsec3_bitmap;
knot_nsec3_hash;
knot_nsec3param_free;
knot_nsec3param_from_wire;
knot_opcode_names;
knot_overlay_add;
knot_overlay_consume;
knot_overlay_deinit;
knot_overlay_finish;
knot_overlay_init;
knot_overlay_produce;
knot_overlay_reset;
knot_pkt_begin;
knot_pkt_clear;
knot_pkt_copy;
knot_pkt_free;
knot_pkt_get_ext_rcode;
knot_pkt_init_response;
knot_pkt_new;
knot_pkt_parse;
knot_pkt_parse_payload;
knot_pkt_parse_question;
knot_pkt_parse_rr;
knot_pkt_parse_section;
knot_pkt_put;
knot_pkt_put_question;
knot_pkt_qclass;
knot_pkt_qname;
knot_pkt_qtype;
knot_pkt_question_size;
knot_pkt_reclaim;
knot_pkt_reserve;
knot_pkt_rr;
knot_pkt_section;
knot_pkt_type;
knot_process_begin;
knot_process_finish;
knot_process_in;
knot_process_out;
knot_process_reset;
knot_rcode_names;
knot_rdata_array_size;
knot_rdata_cmp;
knot_rdata_data;
knot_rdata_init;
knot_rdata_rdlen;
knot_rdata_set_rdlen;
knot_rdata_set_ttl;
knot_rdata_ttl;
knot_rdataset_add;
knot_rdataset_at;
knot_rdataset_clear;
knot_rdataset_copy;
knot_rdataset_eq;
knot_rdataset_init;
knot_rdataset_intersect;
knot_rdataset_member;
knot_rdataset_merge;
knot_rdataset_reserve;
knot_rdataset_size;
knot_rdataset_sort_at;
knot_rdataset_subtract;
knot_rdataset_unreserve;
knot_request_free;
knot_request_make;
knot_requestor_clear;
knot_requestor_dequeue;
knot_requestor_enqueue;
knot_requestor_exec;
knot_requestor_finished;
knot_requestor_init;
knot_requestor_overlay;
knot_rrclass_from_string;
knot_rrclass_to_string;
knot_rrset_add_rdata;
knot_rrset_clear;
knot_rrset_copy;
knot_rrset_empty;
knot_rrset_equal;
knot_rrset_free;
knot_rrset_init;
knot_rrset_init_empty;
knot_rrset_new;
knot_rrset_rr_from_wire;
knot_rrset_rr_to_canonical;
knot_rrset_to_wire;
knot_rrset_ttl;
knot_rrset_txt_dump;
knot_rrset_txt_dump_data;
knot_rrset_txt_dump_header;
knot_rrsig_rdata_size;
knot_rrsig_write_rdata;
knot_rrtype_additional_needed;
knot_rrtype_from_string;
knot_rrtype_is_ddns_forbidden;
knot_rrtype_is_dnssec;
knot_rrtype_is_metatype;
knot_rrtype_should_be_lowercased;
knot_rrtype_to_string;
knot_serial_compare;
knot_sig0_sign;
knot_sign_rrset;
knot_strerror;
knot_synth_rrsig;
knot_tkey_err_names;
knot_tsig_add;
knot_tsig_alg_dnames;
knot_tsig_alg_dnames_str;
knot_tsig_alg_names;
knot_tsig_append;
knot_tsig_client_check;
knot_tsig_client_check_next;
knot_tsig_create_key;
knot_tsig_create_rdata;
knot_tsig_digest_length;
knot_tsig_err_names;
knot_tsig_key_free;
knot_tsig_key_from_params;
knot_tsig_rdata_alg;
knot_tsig_rdata_alg_name;
knot_tsig_rdata_error;
knot_tsig_rdata_fudge;
knot_tsig_rdata_is_ok;
knot_tsig_rdata_mac;
knot_tsig_rdata_mac_length;
knot_tsig_rdata_orig_id;
knot_tsig_rdata_other_data;
knot_tsig_rdata_other_data_length;
knot_tsig_rdata_set_fudge;
knot_tsig_rdata_set_mac;
knot_tsig_rdata_set_orig_id;
knot_tsig_rdata_set_other_data;
knot_tsig_rdata_set_time_signed;
knot_tsig_rdata_time_signed;
knot_tsig_rdata_tsig_timers_length;
knot_tsig_rdata_tsig_variables_length;
knot_tsig_server_check;
knot_tsig_sign;
knot_tsig_sign_next;
knot_tsig_wire_maxsize;
local:
*;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment