diff options
Diffstat (limited to 'dev-libs/libcuda/files/0005-Fix-install-target-for-cuda-lib.patch')
-rw-r--r-- | dev-libs/libcuda/files/0005-Fix-install-target-for-cuda-lib.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/dev-libs/libcuda/files/0005-Fix-install-target-for-cuda-lib.patch b/dev-libs/libcuda/files/0005-Fix-install-target-for-cuda-lib.patch deleted file mode 100644 index 783f3c78b..000000000 --- a/dev-libs/libcuda/files/0005-Fix-install-target-for-cuda-lib.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 720760c6a69cd3d8a3d7682327dbb234a5a473f5 Mon Sep 17 00:00:00 2001 -From: Alexey Shvetsov <alexxy@gentoo.org> -Date: Thu, 15 Nov 2012 09:00:25 +0400 -Subject: [PATCH 5/5] Fix install target for cuda lib - -Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org> ---- - cuda/libcuda/Makefile | 18 ++++++++++-------- - 1 file changed, 10 insertions(+), 8 deletions(-) - -diff --git a/cuda/libcuda/Makefile b/cuda/libcuda/Makefile -index 1a296bb..cdfd360 100644 ---- a/cuda/libcuda/Makefile -+++ b/cuda/libcuda/Makefile -@@ -12,19 +12,21 @@ CUDUMP_OBJS = cudump.o gdev_cuda.o - ZOMBIE = $(wildcard ./*~) - - all: $(OBJS) -- $(CC) -shared -Wl,-soname,$(TARGET).so.1 -o ./$(TARGET).so.1.0.0 $(OBJS) -- $(CC) $(CFLAGS) -o ./$(CUDUMP) $(CUDUMP).c gdev_cuda.c -+ $(CC) $(LDFLAGS) -shared -Wl,-soname,$(TARGET).so.1 -o ./$(TARGET).so.1.0.0 $(OBJS) -+ $(CC) $(LDFLAGS) $(CFLAGS) -o ./$(CUDUMP) $(CUDUMP).c gdev_cuda.c - - %.o:%.c - $(CC) -fPIC -c $^ -o $@ $(CFLAGS) - - install: -- @if test ! -d $(GDEVDIR)/bin ; then mkdir $(GDEVDIR)/bin ; fi ; -- cp -f ./$(CUDUMP) $(GDEVDIR)/bin/ -- cp -f ./$(TARGET).so.1.0.0 $(GDEVDIR)/lib64/ -- ln -sf $(GDEVDIR)/lib64/$(TARGET).so.1.0.0 $(GDEVDIR)/lib64/$(TARGET).so.1 -- ln -sf $(GDEVDIR)/lib64/$(TARGET).so.1 $(GDEVDIR)/lib64/$(TARGET).so -- cp -f ./cuda.h $(GDEVDIR)/include -+ @if test ! -d $(DESTDIR)/$(GDEVDIR)/bin ; then mkdir -p $(DESTDIR)/$(GDEVDIR)/bin ; fi ; -+ @if test ! -d $(DESTDIR)/$(GDEVDIR)/lib64 ; then mkdir -p $(DESTDIR)/$(GDEVDIR)/lib64 ; fi ; -+ @if test ! -d $(DESTDIR)/$(GDEVDIR)/include ; then mkdir -p $(DESTDIR)/$(GDEVDIR)/include ; fi ; -+ cp -f ./$(CUDUMP) $(DESTDIR)/$(GDEVDIR)/bin/ -+ cp -f ./$(TARGET).so.1.0.0 $(DESTDIR)/$(GDEVDIR)/lib64/ -+ ln -sf $(GDEVDIR)/lib64/$(TARGET).so.1.0.0 $(DESTDIR)/$(GDEVDIR)/lib64/$(TARGET).so.1 -+ ln -sf $(GDEVDIR)/lib64/$(TARGET).so.1 $(DESTDIR)/$(GDEVDIR)/lib64/$(TARGET).so -+ cp -f ./cuda.h $(DESTDIR)/$(GDEVDIR)/include - - uninstall: - rm -f $(GDEVDIR)/lib64/$(TARGET).* --- -1.7.12.3 - |