From a6d51ee1a658b552033a077de937830239b4b1dd Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Thu, 25 Apr 2002 06:47:29 +0000 Subject: [PATCH] (SOVERSION): New macro. (install-exec-hook): Use this hook to create symlinks from architecture-specific library name to default name (libunwind.a/libunwind.so). (libunwind_la_SOURCES_ia64): Mention unw_is_signal_frame.c and Lunw_is_signal_frame.c. (libunwind_la_SOURCES): Drop. (libunwind_ia64_la_LDFLAGS): New macro. (libunwind_ia32_la_LDFLAGS): New macro. (libunwind_la_LDFLAGS): Drop. (Logical change 1.18) --- src/Makefile.am | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 05ac94d5..efeb7fc6 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,17 @@ +SOVERSION=0:0:0 # See comments at end of file. + if REMOTE_ONLY else libunwind_la_SOURCES_common = backtrace.c + +# +# This is not ideal, but I know of no other way to install an +# alias for a library. +# +install-exec-hook: + $(LN_S) -f libunwind-$(arch).a $(DESTDIR)$(libdir)/libunwind.a + $(LN_S) -f libunwind-$(arch).so $(DESTDIR)$(libdir)/libunwind.so + endif libunwind_la_SOURCES_ia64 = $(libunwind_la_SOURCES_common) \ @@ -12,29 +23,25 @@ libunwind_la_SOURCES_ia64 = $(libunwind_la_SOURCES_common) \ \ ia64/init.c ia64/parser.c ia64/regs.c ia64/script.c \ ia64/unw_get_reg.c ia64/unw_get_fpreg.c ia64/unw_get_save_loc.c \ + ia64/unw_is_signal_frame.c \ ia64/unw_resume.c ia64/unw_set_reg.c ia64/unw_set_fpreg.c \ ia64/unw_init_local.c ia64/unw_init_remote.c ia64/unw_step.c \ \ ia64/Linit.c ia64/Lparser.c ia64/Lregs.c ia64/Lscript.c \ ia64/Lunw_get_reg.c ia64/Lunw_get_fpreg.c ia64/Lunw_get_save_loc.c \ + ia64/Lunw_is_signal_frame.c \ ia64/Lunw_resume.c ia64/Lunw_set_reg.c ia64/Lunw_set_fpreg.c \ ia64/Lunw_init_local.c ia64/Lunw_init_remote.c ia64/Lunw_step.c -if ARCH_IA64 -libunwind_la_SOURCES = $(libunwind_la_SOURCES_ia64) -else -if ARCH_IA32 -libunwind_la_SOURCES = $(libunwind_la_SOURCES_ia32) -endif -endif - if ARCH_IA64 lib_LTLIBRARIES = libunwind-ia64.la - libunwind_ia64_la_SOURCES = $(libunwind_la_SOURCES) + libunwind_ia64_la_SOURCES = $(libunwind_la_SOURCES_ia64) + libunwind_ia64_la_LDFLAGS = -version-info $(SOVERSION) else if ARCH_IA32 lib_LTLIBRARIES = libunwind-ia32.la - libunwind_ia32_la_SOURCES = $(libunwind_la_SOURCES) + libunwind_ia32_la_SOURCES = $(libunwind_la_SOURCES_ia32) + libunwind_ia64_la_LDFLAGS = -version-info $(SOVERSION) endif endif @@ -43,8 +50,6 @@ endif AM_CPPFLAGS = -I$(top_srcdir)/include -libunwind_la_LDFLAGS = -version-info 0:0:0 - # The -version-info flag accepts an argument of the form # `current[:revision[:age]]'. So, passing `-version-info 3:12:1' sets # current to 3, revision to 12, and age to 1.