NEWS | 8 ++++++++ configure.ac | 21 ++++++++++++++++++++- inc/libcdr/libcdr_api.h | 4 ++++ 3 files changed, 32 insertions(+), 1 deletion(-)
New commits: commit 06f9844bd62f718bed85ca74d3769f73b5b9b2ab Author: David Tardon <[email protected]> Date: Mon Nov 24 15:02:54 2014 +0100 prepare for a release Change-Id: I4d02133381c7cad26f2fabb25eb1abb6d1b10992 diff --git a/NEWS b/NEWS index 6392822..61152a5 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,11 @@ +libcdr 0.1.1 + +* Fix several problems found by Coverity. +* Fix crash when NULL is passed as input stream. +* Fix various crashes and hangs when reading broken files found with the + help of american-fuzzy-lop. +* Only export public symbols on Linux. + libcdr 0.1.0 * switch to librevenge diff --git a/configure.ac b/configure.ac index af456c3..e5f51aa 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,7 @@ AC_PREREQ([2.65]) # ==================== m4_define([libcdr_version_major],[0]) m4_define([libcdr_version_minor],[1]) -m4_define([libcdr_version_micro],[0]) +m4_define([libcdr_version_micro],[1]) m4_define([libcdr_version],[libcdr_version_major.libcdr_version_minor.libcdr_version_micro]) # ============= commit d8f9b82f345e3f22b440e17e58adfc23a40ee6a0 Author: David Tardon <[email protected]> Date: Fri Aug 29 13:31:09 2014 +0200 only export public symbols Change-Id: I0688bcb1742b0459db599517ebe50e45495a1bad diff --git a/configure.ac b/configure.ac index a216684..af456c3 100644 --- a/configure.ac +++ b/configure.ac @@ -184,6 +184,25 @@ AS_CASE([$host], AC_MSG_RESULT([$platform_win32]) AM_CONDITIONAL([PLATFORM_WIN32], [test "x$platform_win32" = "xyes"]) +AS_IF([test $platform_win32 == yes], + [], + [ + AC_MSG_CHECKING([for -fvisibility=hidden compiler flag]) + saved_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -fvisibility=hidden" + AC_TRY_COMPILE([], [], + [ + AC_MSG_RESULT([yes]) + CXXFLAGS="$CXXFLAGS -DLIBCDR_VISIBILITY" + ], + [ + AC_MSG_RESULT([no]) + CXXFLAGS="$saved_CXXFLAGS" + ] + ) + ] +) + # ================ # Check for cflags # ================ diff --git a/inc/libcdr/libcdr_api.h b/inc/libcdr/libcdr_api.h index c3da491..81d68af 100644 --- a/inc/libcdr/libcdr_api.h +++ b/inc/libcdr/libcdr_api.h @@ -16,9 +16,13 @@ #else #define CDRAPI __declspec(dllimport) #endif +#else // !DLL_EXPORT +#ifdef LIBCDR_VISIBILITY +#define CDRAPI __attribute__((visibility("default"))) #else #define CDRAPI #endif +#endif #endif /* vim:set shiftwidth=2 softtabstop=2 expandtab: */ _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
