From 963f049ca625a0b530ab40a41a3a71c262ac7b62 Mon Sep 17 00:00:00 2001 From: Jeff Moyer Date: Tue, 25 Jan 2005 19:49:48 +0000 Subject: - Fix SONAME breakage. In changing file names around, I also changed the SONAME, which is a no no. --- libaio.spec | 6 +++++- src/Makefile | 15 +++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/libaio.spec b/libaio.spec index 3f98864..dd89ed8 100644 --- a/libaio.spec +++ b/libaio.spec @@ -1,5 +1,5 @@ Name: libaio -Version: 0.3.102 +Version: 0.3.103 Release: 1 Summary: Linux-native asynchronous I/O access library Copyright: LGPL @@ -59,6 +59,10 @@ make install prefix=$RPM_BUILD_ROOT/usr \ %attr(0644,root,root) %{_libdir}/libaio.a %changelog +* Tue Jan 25 2005 Jeff Moyer - 0.3.103-1 +- Fix SONAME breakage. In changing file names around, I also changed the + SONAME, which is a no no. + * Thu Oct 14 2004 Jeff Moyer - 0.3.102-1 - S390 asm had a bug; I forgot to update the clobber list. Lucky for me, newer compilers complain about such things. diff --git a/src/Makefile b/src/Makefile index 773f13f..8d134cc 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,8 +8,11 @@ SO_CFLAGS=-shared $(CFLAGS) L_CFLAGS=$(CFLAGS) LINK_FLAGS= -soname=libaio.so.1.0.0 -all_targets += libaio.a $(soname) +soname=libaio.so.1 +minor=0 +micro=1 +libname=$(soname).$(minor).$(micro) +all_targets += libaio.a $(libname) all: $(all_targets) @@ -44,15 +47,15 @@ libaio.a: $(libaio_objs) ar r libaio.a $^ ranlib libaio.a -$(soname): $(libaio_sobjs) libaio.map +$(libname): $(libaio_sobjs) libaio.map $(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS) install: $(all_targets) install -D -m 644 libaio.h $(includedir)/libaio.h install -D -m 644 libaio.a $(libdir)/libaio.a - install -D -m 755 $(soname) $(libdir)/$(soname) - ln -sf $(soname) $(libdir)/libaio.so.1 - ln -sf $(soname) $(libdir)/libaio.so + install -D -m 755 $(libname) $(libdir)/$(libname) + ln -sf $(libname) $(libdir)/$(soname) + ln -sf $(libname) $(libdir)/libaio.so $(libaio_objs): libaio.h -- cgit v1.2.1