diff options
author | David Shakaryan <omp@gentoo.org> | 2007-01-10 01:18:28 +0000 |
---|---|---|
committer | David Shakaryan <omp@gentoo.org> | 2007-01-10 01:18:28 +0000 |
commit | cf696ba90a56b2971e911798875ef3d6d2e0d6bf (patch) | |
tree | ecf23f50bbaab70c9a664a26dfb645b6edab6880 /sys-libs/libixp/files | |
parent | Stable on Alpha. (diff) | |
download | historical-cf696ba90a56b2971e911798875ef3d6d2e0d6bf.tar.gz historical-cf696ba90a56b2971e911798875ef3d6d2e0d6bf.tar.bz2 historical-cf696ba90a56b2971e911798875ef3d6d2e0d6bf.zip |
Compile shared object file; thanks to Maxim Treskin for patch. (bug #161105)
Package-Manager: portage-2.1.2_rc4-r7
Diffstat (limited to 'sys-libs/libixp/files')
-rw-r--r-- | sys-libs/libixp/files/digest-libixp-0.2-r1 | 3 | ||||
-rw-r--r-- | sys-libs/libixp/files/libixp-0.2-shared-object.patch | 73 |
2 files changed, 76 insertions, 0 deletions
diff --git a/sys-libs/libixp/files/digest-libixp-0.2-r1 b/sys-libs/libixp/files/digest-libixp-0.2-r1 new file mode 100644 index 000000000000..fb7204d6b0af --- /dev/null +++ b/sys-libs/libixp/files/digest-libixp-0.2-r1 @@ -0,0 +1,3 @@ +MD5 e50c613f7410bc1cff3a18926804202f libixp-0.2.tar.gz 20701 +RMD160 a0738f88ea8b150f1eead51ef9270bf567d7795e libixp-0.2.tar.gz 20701 +SHA256 5e5eec16dd02bce3f014b90df029e91136031852568ff9a147d3f99f6eaf0143 libixp-0.2.tar.gz 20701 diff --git a/sys-libs/libixp/files/libixp-0.2-shared-object.patch b/sys-libs/libixp/files/libixp-0.2-shared-object.patch new file mode 100644 index 000000000000..c3318d02932e --- /dev/null +++ b/sys-libs/libixp/files/libixp-0.2-shared-object.patch @@ -0,0 +1,73 @@ +diff -u libixp-0.2_orig/config.mk libixp-0.2/config.mk +--- libixp-0.2_orig/config.mk 2006-12-27 17:59:09.000000000 +0600 ++++ libixp-0.2/config.mk 2007-01-09 10:57:38.699888388 +0600 +@@ -14,6 +14,7 @@ + # flags + CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" + LDFLAGS = ${LIBS} ++SOFLAGS = -fPIC -shared + #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" + #LDFLAGS = -g ${LIBS} + +diff -u libixp-0.2_orig/Makefile libixp-0.2/Makefile +--- libixp-0.2_orig/Makefile 2006-12-27 17:59:09.000000000 +0600 ++++ libixp-0.2/Makefile 2007-01-09 11:06:30.926977572 +0600 +@@ -9,13 +9,14 @@ + OBJ = ${SRC:.c=.o} + OBJIXPC = ${SRCIXPC:.c=.o} + +-all: options libixp.a ixpc ++all: options libixp.a libixp.so ixpc + + options: + @echo libixp build options: + @echo "CFLAGS = ${CFLAGS}" + @echo "LDFLAGS = ${LDFLAGS}" + @echo "CC = ${CC}" ++ @echo "SOFLAGS = ${SOFLAGS}" + @echo "LD = ${LD}" + + .c.o: +@@ -29,6 +30,10 @@ + @${AR} $@ ${OBJ} + @${RANLIB} $@ + ++libixp.so: ${OBJ} ++ @echo CC $@ ++ @${CC} ${SOFLAGS} -o $@ ${OBJ} ++ + ixpc: ${OBJIXPC} + @echo LD $@ + @${LD} -o $@ ${OBJIXPC} ${LDFLAGS} -lixp +@@ -36,7 +41,7 @@ + + clean: + @echo cleaning +- @rm -f ixpc libixp.a ${OBJ} ${OBJIXPC} libixp-${VERSION}.tar.gz ++ @rm -f ixpc libixp.a libixp.so ${OBJ} ${OBJIXPC} libixp-${VERSION}.tar.gz + + dist: clean + @echo creating dist tarball +@@ -55,6 +60,9 @@ + @mkdir -p ${DESTDIR}${PREFIX}/lib + @cp -f libixp.a ${DESTDIR}${PREFIX}/lib + @chmod 644 ${DESTDIR}${PREFIX}/lib/libixp.a ++ @cp -f libixp.so ${DESTDIR}${PREFIX}/lib/libixp.so.${VERSION} ++ @chmod 755 ${DESTDIR}${PREFIX}/lib/libixp.so.${VERSION} ++ @ln -s libixp.so.${VERSION} ${DESTDIR}${PREFIX}/lib/libixp.so + @echo installing ixpc to ${DESTDIR}${PREFIX}/bin + @mkdir -p ${DESTDIR}${PREFIX}/bin + @cp -f ixpc ${DESTDIR}${PREFIX}/bin +@@ -67,8 +75,12 @@ + uninstall: + @echo removing header file from ${DESTDIR}${PREFIX}/include + @rm -f ${DESTDIR}${PREFIX}/include/ixp.h ++ + @echo removing library file from ${DESTDIR}${PREFIX}/lib + @rm -f ${DESTDIR}${PREFIX}/lib/libixp.a ++ @echo removing shared object file from ${DESTDIR}${PREFIX}/lib ++ @rm -f ${DESTDIR}${PREFIX}/lib/libixp.so ++ @rm -f ${DESTDIR}${PREFIX}/lib/libixp.so.${VERSION} + @echo removing ipx client from ${DESTDIR}${PREFIX}/bin + @rm -f ${DESTDIR}${PREFIX}/bin/ixpc + @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 |