summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Moyer <jmoyer@redhat.com>2005-01-25 19:49:48 +0000
committerJeff Moyer <jmoyer@redhat.com>2005-01-25 19:49:48 +0000
commit963f049ca625a0b530ab40a41a3a71c262ac7b62 (patch)
tree3c21c29c5eb914f0edef2b65500689c0caa30c16
parentf70ac55fe6a4e4a880ce21f2e519eeb3eecd7e60 (diff)
downloadlibaio-963f049ca625a0b530ab40a41a3a71c262ac7b62.tar.gz
- Fix SONAME breakage. In changing file names around, I also changed thelibaio.0-3-103.1
SONAME, which is a no no.
-rw-r--r--libaio.spec6
-rw-r--r--src/Makefile15
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 <jmoyer@redhat.com> - 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 <jmoyer@redhat.com> - 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