diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2021-11-07 18:04:18 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2021-11-07 18:57:43 +0100 |
commit | ae171a9c1bec28e6ac4daf30d11c67230d108cae (patch) | |
tree | 37a8cb8d0f2c672c865b6bf2b71ff76eda86db6d /configure.ac | |
parent | 9e0efee77b50047f8542b47593e2ca5b73decada (diff) | |
download | libgphoto2-ae171a9c1bec28e6ac4daf30d11c67230d108cae.tar.gz |
Consistent checks for asm .symver and version-script
Use the same checks for asm .symver and -Wl,--version-script
support for both libgphoto2.la and libgphoto2_port.la.
This also reorganizes the Makefile.am files for libgphoto2.la
and libgphoto2_port.la so that things belonging together are
actually grouped together, so that inconsistencies can become
more visible.
This does not change what actually happens with when linking
the libraries:
* libgphoto2.la is still linked with just a
--export-symbols libgphoto2.sym
list of exported symbols.
* libgphoto2_port.la is still linked with a
-Wl,--version-script=libgphoto2_port.ver
version script.
However, the two library Makefile.am are now organized
in such a way that you can actually see that.
We should examine what those two symbol export methods actually
do on Linux/ELF (complete support for version script semantics),
and on non-ELF systems such as MacOSX dylib or Windows DLL.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/configure.ac b/configure.ac index c49a14c68..352229a74 100644 --- a/configure.ac +++ b/configure.ac @@ -289,26 +289,7 @@ AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\"" AC_SYS_LARGEFILE -AC_MSG_CHECKING([for asm .symver support]) -AC_COMPILE_IFELSE([dnl - AC_LANG_PROGRAM([[ - void f1(void); - void f1() {} - void f2(void); - void f2() {} - asm(".symver f1, f@VER1"); - asm(".symver f2, f@@VER2"); - ]],[])dnl -],[ - AC_DEFINE([HAVE_ASM_SYMVERS], [1], - [Define if there is asm .symver support.]) - VERSIONMAPLDFLAGS="-Wl,--version-script=\$(srcdir)/libgphoto2.ver" - AC_MSG_RESULT([yes]) -],[ - VERSIONMAPLDFLAGS="" - AC_MSG_RESULT([no]) -]) -AC_SUBST([VERSIONMAPLDFLAGS]) +GP_ASM_SYMVER_SUPPORT dnl --------------------------------------------------------------------------- dnl FIXME: What is this good for? |