summaryrefslogtreecommitdiff
blob: dd7845f6c52ecab451dacb60afc9a7529056bfa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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)