diff options
| author | Gergely Nagy <algernon@balabit.hu> | 2012-03-22 12:44:15 +0100 |
|---|---|---|
| committer | Gergely Nagy <algernon@balabit.hu> | 2012-03-22 12:44:15 +0100 |
| commit | 752618700ac94db3d8fd1ea8dfd9e1cb97a64e4e (patch) | |
| tree | 4261c0e315cf9f03c5caf0a2579ac28653fa9efe /lib | |
| parent | 375950b38def08f52fc3c3e48dabd70465199947 (diff) | |
| download | libumberlog-752618700ac94db3d8fd1ea8dfd9e1cb97a64e4e.tar.gz libumberlog-752618700ac94db3d8fd1ea8dfd9e1cb97a64e4e.tar.xz libumberlog-752618700ac94db3d8fd1ea8dfd9e1cb97a64e4e.zip | |
Implement and enable symbol versioning.
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Makefile.am | 1 | ||||
| -rw-r--r-- | lib/libcee-syslog.ld | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index ab40994..c32a826 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -3,6 +3,7 @@ LCS_REVISION = 0 LCS_AGE = 0 lib_LTLIBRARIES = libcee-syslog.la +libcee_syslog_la_LDFLAGS = -Wl,--version-script,${srcdir}/libcee-syslog.ld libcee_syslog_la_LIBADD = @JSON_LIBS@ -ldl -lrt libcee_syslog_la_CFLAGS = @JSON_CFLAGS@ diff --git a/lib/libcee-syslog.ld b/lib/libcee-syslog.ld new file mode 100644 index 0000000..41120a2 --- /dev/null +++ b/lib/libcee-syslog.ld @@ -0,0 +1,17 @@ +LIBCEE_SYSLOG_0.1.0 { + global: + # Our own symbols + cee_format; + cee_vformat; + cee_syslog; + cee_vsyslog; + cee_legacy_syslog; + cee_legacy_vsyslog; + cee_openlog; + cee_setlogmask; + # Overrides + syslog; + vsyslog; + openlog; + setlogmask; +}; |
