Index: clalsadrv/Makefile
===================================================================
--- clalsadrv.orig/Makefile
+++ clalsadrv/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,14 +42,14 @@ 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 -d $(PREFIX)/include
 	/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)
 
 
