File singular-so-version.diff of Package singular
parent 18a3fcb5e0bc9310e4c598cc0547bb792297b9f4 ()
commit 6a759f11af1c25a693f519426693c2fcd15e2318
Author: Jan Engelhardt <jengelh@medozas.de>
Date: Mon Jan 2 10:30:35 2012 +0100
Adequate SO versioning for shipped libraries
There seems to be no agenda for SO version management, so just add
"-release" to all to make sure the names are unique in a system.
---
Singular/Makefile.am | 3 +++
findexec/Makefile.am | 3 +++
kernel/Makefile.am | 3 +++
libpolys/coeffs/Makefile.am | 3 +++
libpolys/misc/Makefile.am | 3 +++
libpolys/polys/Makefile.am | 2 ++
libpolys/reporter/Makefile.am | 2 ++
numeric/Makefile.am | 3 +++
omalloc/Makefile.am | 3 +++
9 files changed, 25 insertions(+)
Index: Sources/Singular/Makefile.am
===================================================================
--- Sources.orig/Singular/Makefile.am
+++ Sources/Singular/Makefile.am
@@ -39,6 +39,9 @@ libSingular_g_la_CXXFLAGS = -g -Wextra -
libSingular_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG -DLIBSINGULAR
libSingular_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DLIBSINGULAR
+libSingular_la_LDFLAGS = -release ${PACKAGE_VERSION}
+libSingular_g_la_LDFLAGS = ${libSingular_la_LDFLAGS}
+
SOURCES = Minor.cc\
MinorInterface.cc\
MinorProcessor.cc\
Index: Sources/findexec/Makefile.am
===================================================================
--- Sources.orig/findexec/Makefile.am
+++ Sources/findexec/Makefile.am
@@ -25,6 +25,9 @@ AM_CPPFLAGS = -I${top_srcdir} -I${top_bu
libfindexec_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
libfindexec_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
+libfindexec_la_LDFLAGS = -release ${PACKAGE_VERSION}
+libfindexec_g_la_LDFLAGS = ${libfindexec_la_LDFLAGS}
+
SOURCES = omFindExec.c feResource.cc feFopen.cc
libfindexec_la_SOURCES = $(SOURCES)
libfindexec_g_la_SOURCES = $(SOURCES)
Index: Sources/kernel/Makefile.am
===================================================================
--- Sources.orig/kernel/Makefile.am
+++ Sources/kernel/Makefile.am
@@ -20,6 +20,9 @@ endif
libkernel_LTLIBRARIES = libkernel.la ${LIB_G}
libkerneldir = $(libdir)/singular
+libkernel_la_LDFLAGS = -release ${PACKAGE_VERSION}
+libkernel_g_la_LDFLAGS = ${libkernel_la_LDFLAGS}
+
libkernel_la_CFLAGS = -O3 -fomit-frame-pointer -Wextra -Wall -Wno-long-long ${PIPE}
libkernel_g_la_CFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE}
## -pedantic
Index: Sources/libpolys/coeffs/Makefile.am
===================================================================
--- Sources.orig/libpolys/coeffs/Makefile.am
+++ Sources/libpolys/coeffs/Makefile.am
@@ -22,6 +22,9 @@ libcoeffs_g_la_CXXFLAGS = -g -Wextra -Wa
libcoeffs_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
libcoeffs_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
+libcoeffs_la_LDFLAGS = -release ${PACKAGE_VERSION}
+libcoeffs_g_la_LDFLAGS = ${libcoeffs_la_LDFLAGS}
+
# noinst_HEADERS= \
# gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \
Index: Sources/libpolys/misc/Makefile.am
===================================================================
--- Sources.orig/libpolys/misc/Makefile.am
+++ Sources/libpolys/misc/Makefile.am
@@ -22,6 +22,9 @@ libmisc_g_la_CXXFLAGS = -g -Wextra -Wall
libmisc_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG
libmisc_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
+libmisc_la_LDFLAGS = -release ${PACKAGE_VERSION}
+libmisc_g_la_LDFLAGS = ${libmisc_la_LDFLAGS}
+
SOURCES = intvec.cc int64vec.cc options.c
libmisc_la_SOURCES = $(SOURCES)
libmisc_g_la_SOURCES = $(SOURCES)
Index: Sources/libpolys/polys/Makefile.am
===================================================================
--- Sources.orig/libpolys/polys/Makefile.am
+++ Sources/libpolys/polys/Makefile.am
@@ -138,6 +138,8 @@ EXTRA_libpolys_la_SOURCES = templates/p_
libpolys_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
libpolys_la_CPPFLAGS = ${NODEBUGDEFS} ${AM_CPPFLAGS}
+libpolys_la_LDFLAGS = -release ${PACKAGE_VERSION}
+libpolys_g_la_LDFLAGS = ${libpolys_la_LDFLAGS}
Index: Sources/libpolys/reporter/Makefile.am
===================================================================
--- Sources.orig/libpolys/reporter/Makefile.am
+++ Sources/libpolys/reporter/Makefile.am
@@ -22,6 +22,8 @@ libreporter_g_la_CXXFLAGS = -g -Wextra -
libreporter_la_CPPFLAGS = ${AM_CPPFLAGS} -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H
libreporter_g_la_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H
+libreporter_la_LDFLAGS = -release ${PACKAGE_VERSION}
+libreporter_g_la_LDFLAGS = ${libreporter_la_LDFLAGS}
SOURCES = dError.cc reporter.cc
libreporter_la_SOURCES = $(SOURCES)
Index: Sources/numeric/Makefile.am
===================================================================
--- Sources.orig/numeric/Makefile.am
+++ Sources/numeric/Makefile.am
@@ -9,6 +9,9 @@ libnumericdir = $(libdir)/singular
CXXTEMPLFLAGS =-ftrapv ## -fno-implicit-templates
+libnumeric_la_LDFLAGS = -release ${PACKAGE_VERSION}
+libnumeric_g_la_LDFLAGS = ${libnumeric_la_LDFLAGS}
+
libnumeric_la_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
libnumeric_g_la_CFLAGS = ${PIPE}
Index: Sources/omalloc/Makefile.am
===================================================================
--- Sources.orig/omalloc/Makefile.am
+++ Sources/omalloc/Makefile.am
@@ -48,6 +48,9 @@ nodist_libomalloc_include_HEADERS = omCo
libomalloc_la_CPPFLAGS = ${AM_CPPFLAGS} -DOM_ALLOC_INTERNAL -DHAVE_CONFIG_H
libomalloc_g_la_CPPFLAGS= ${AM_CPPFLAGS} -DOM_ALLOC_INTERNAL -DHAVE_CONFIG_H
+libomalloc_la_LDFLAGS = -release ${PACKAGE_VERSION}
+libomalloc_g_la_LDFLAGS = ${libomalloc_la_LDFLAGS}
+
BUILT_SOURCES = omTables.inc omTables.h
omTables.inc: omTables omalloc.h