SHA256
1
0
forked from pool/gap-io
gap-io/io-install.diff

48 lines
2.7 KiB
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2013-05-19 19:31:21.739854572 +0200
build: unbreak DESTDIR support
(duh)
+ make -j10 DESTDIR=/home/abuild/rpmbuild/BUILDROOT/gap-io-4.2-0.x86_64
make[1]: Entering directory `/home/abuild/rpmbuild/BUILD/io'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/lib/gap -I/usr/lib/gap/bin/x86_64-suse-linux-gnu-gcc-default64 -DCONFIG_H -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -c -o io_la-io.lo `test -f 'src/io.c' || echo './'`src/io.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/lib/gap -I/usr/lib/gap/bin/x86_64-suse-linux-gnu-gcc-default64 -DCONFIG_H -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -c src/io.c -fPIC -DPIC -o .libs/io_la-io.o
/bin/sh ./libtool --tag=CC --mode=link gcc -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -module -avoid-version -o io.la -rpath /usr/lib64 io_la-io.lo
libtool: link: gcc -shared -fPIC -DPIC .libs/io_la-io.o -O2 -Wl,-soname -Wl,io.so -o .libs/io.so
libtool: link: ( cd ".libs" && rm -f "io.la" && ln -s "../io.la" "io.la" )
test -z "/usr/lib64" || /usr/bin/mkdir -p "/home/abuild/rpmbuild/BUILDROOT/gap-io-4.2-0.x86_64/usr/lib64"
/bin/sh ./libtool --mode=install /usr/bin/install -c io.la '/home/abuild/rpmbuild/BUILDROOT/gap-io-4.2-0.x86_64/usr/lib64'
libtool: install: /usr/bin/install -c .libs/io.so /home/abuild/rpmbuild/BUILDROOT/gap-io-4.2-0.x86_64/usr/lib64/io.so
libtool: install: /usr/bin/install -c .libs/io.lai /home/abuild/rpmbuild/BUILDROOT/gap-io-4.2-0.x86_64/usr/lib64/io.la
libtool: install: warning: remember to run `libtool --finish /usr/lib64'
/usr/bin/mkdir -p ./bin/x86_64-suse-linux-gnu-gcc-default64
cp /usr/lib64/io.so /home/abuild/rpmbuild/BUILD/io/bin/x86_64-suse-linux-gnu-gcc-default64/io.so
cp: cannot stat '/usr/lib64/io.so': No such file or directory
make[1]: *** [all-local] Error 1
make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/io'
make: *** [all-recursive] Error 1
---
Makefile.am | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Index: io/Makefile.am
===================================================================
--- io.orig/Makefile.am
+++ io/Makefile.am
@@ -18,10 +18,11 @@ endif
all-local: io.la install-libLTLIBRARIES
$(mkdir_p) $(top_srcdir)/$(BINARCHDIR)
if SYS_IS_CYGWIN
- cp $(libdir)/io.dll $(GAPINSTALLLIB)
+ mv $(DESTDIR)$(libdir)/io.dll $(GAPINSTALLLIB)
else
- cp $(libdir)/io.so $(GAPINSTALLLIB)
+ mv $(DESTDIR)$(libdir)/io.so $(GAPINSTALLLIB)
endif
+ rm -f $(DESTDIR)$(libdir)/io.la
@echo "SUCCESS!"
distclean-local: