diff options
Diffstat (limited to 'media-libs/libclalsadrv/files/libclalsadrv-1.2.1-makefile.patch')
-rw-r--r-- | media-libs/libclalsadrv/files/libclalsadrv-1.2.1-makefile.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/media-libs/libclalsadrv/files/libclalsadrv-1.2.1-makefile.patch b/media-libs/libclalsadrv/files/libclalsadrv-1.2.1-makefile.patch new file mode 100644 index 000000000000..f38c91128ce5 --- /dev/null +++ b/media-libs/libclalsadrv/files/libclalsadrv-1.2.1-makefile.patch @@ -0,0 +1,33 @@ +Index: clalsadrv-1.2.1/Makefile +=================================================================== +--- clalsadrv-1.2.1.orig/Makefile ++++ clalsadrv-1.2.1/Makefile +@@ -28,7 +28,7 @@ VERSION = $(MAJVERS).$(MINVERS) + DISTDIR = clalsadrv-$(VERSION) + + +-CPPFLAGS += -Wall -I. -fpic -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -O2 ++CPPFLAGS += -Wall -I. -fpic -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS + LDLFAGS += + LDLIBS += -lclalsadrv -lclthreads -lrt + +@@ -42,15 +42,13 @@ CLALSADRV_H = clalsadrv.h + + + $(CLALSADRV_MIN): $(CLALSADRV_O) +- g++ -shared $(LDFLAGS) -Wl,-soname,$(CLALSADRV_MAJ) -o $(CLALSADRV_MIN) $(CLALSADRV_O) $(CLALSADRV_DEP) ++ $(CXX) -shared $(LDFLAGS) -Wl,-soname,$(CLALSADRV_MAJ) -o $(CLALSADRV_MIN) $(CLALSADRV_O) $(CLALSADRV_DEP) + + + install: $(CLALSADRV_MIN) +- /usr/bin/install -d $(PREFIX)/$(LIBDIR) +- /usr/bin/install -m 644 $(CLALSADRV_H) $(PREFIX)/include +- /usr/bin/install -m 755 $(CLALSADRV_MIN) $(PREFIX)/$(LIBDIR) +- /sbin/ldconfig -n $(PREFIX)/$(LIBDIR) +- ln -sf $(CLALSADRV_MIN) $(PREFIX)/$(LIBDIR)/$(CLALSADRV_SO) ++ /usr/bin/install -D $(CLALSADRV_H) $(DESTDIR)/usr/include/$(CLALSADRV_H) ++ /usr/bin/install -D $(CLALSADRV_MIN) $(DESTDIR)/usr/$(LIBDIR)/$(CLALSADRV_MIN) ++ ln -sf $(CLALSADRV_MIN) $(DESTDIR)/usr/$(LIBDIR)/$(CLALSADRV_SO) + + + clean: |