forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
12.1.0.2-makefile.patch
57 lines (50 loc) · 2.16 KB
/
12.1.0.2-makefile.patch
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Fake demo_xe.mk found in Oracle eXpress Edition,
known by CPAN DBD::Oracle (bug#165834).
This provides absolute paths for headers and libraries.
Paranoia drops those REMOVE lines.
--- instantclient_12_1/sdk/demo/demo.mk
+++ instantclient_12_1/sdk/demo/demo.mk
@@ -28,8 +28,9 @@
CC=/opt/SunProd/SUNWspro6.1/bin/CC
cc=/opt/SunProd/SUNWspro6.1/bin/cc
-ICINCHOME=../
-ICLIBHOME=../../
+LIBDIR=lib
+ICINCHOME=$(ORACLE_HOME)/
+ICLIBHOME=$(ORACLE_HOME)/$(LIBDIR)
ICLIBPATH=-L$(ICLIBHOME)
THREADLIBS=-lthread
CCLIB=$(ICLIBPATH) -locci -lclntsh $(THREADLIBS)
@@ -64,18 +65,18 @@
all: clean buildoci $(OCCIDEMO) $(OCCIOBJDEMO)
buildoci: $(CLNCACHE) $(LIBCLNT) $(CDEMOOBJS)
- $(MKLINK) $(ICLIBHOME)libclntsh$(SO_EXT).12.1 $(ICLIBHOME)libclntsh$(SO_EXT)
- $(MKLINK) $(ICLIBHOME)libocci$(SO_EXT).12.1 $(ICLIBHOME)libocci$(SO_EXT)
+# $(MKLINK) $(ICLIBHOME)libclntsh$(SO_EXT).12.1 $(ICLIBHOME)libclntsh$(SO_EXT)
+# $(MKLINK) $(ICLIBHOME)libocci$(SO_EXT).12.1 $(ICLIBHOME)libocci$(SO_EXT)
$(CC) -o $(CDEMOEXE) $(LDFLAGS) $(CDEMOOBJS) $(CCLIB)
- $(REMOVE) $(ICLIBHOME)libclntsh$(SO_EXT)
- $(REMOVE) $(ICLIBHOME)libocci$(SO_EXT)
+# $(REMOVE) $(ICLIBHOME)libclntsh$(SO_EXT)
+# $(REMOVE) $(ICLIBHOME)libocci$(SO_EXT)
buildocci: $(CLNCACHE) $(LIBCLNT) $(OBJS)
- $(MKLINK) $(ICLIBHOME)libclntsh$(SO_EXT).12.1 $(ICLIBHOME)libclntsh$(SO_EXT)
- $(MKLINK) $(ICLIBHOME)libocci$(SO_EXT).12.1 $(ICLIBHOME)libocci$(SO_EXT)
+# $(MKLINK) $(ICLIBHOME)libclntsh$(SO_EXT).12.1 $(ICLIBHOME)libclntsh$(SO_EXT)
+# $(MKLINK) $(ICLIBHOME)libocci$(SO_EXT).12.1 $(ICLIBHOME)libocci$(SO_EXT)
$(CC) -o $(EXE) $(LDFLAGS) $(OBJS) $(CCLIB)
- $(REMOVE) $(ICLIBHOME)libclntsh$(SO_EXT)
- $(REMOVE) $(ICLIBHOME)libocci$(SO_EXT)
+# $(REMOVE) $(ICLIBHOME)libclntsh$(SO_EXT)
+# $(REMOVE) $(ICLIBHOME)libocci$(SO_EXT)
$(OCCIDEMO):
$(MAKE) -f $(MAKEFILE) buildocci [email protected] EXE=$@
@@ -93,8 +94,8 @@
cleancache:
$(REMOVE) $(CACHEDIR)
- $(REMOVE) $(ICLIBHOME)libclntsh$(SO_EXT)
- $(REMOVE) $(ICLIBHOME)libocci$(SO_EXT)
+# $(REMOVE) $(ICLIBHOME)libclntsh$(SO_EXT)
+# $(REMOVE) $(ICLIBHOME)libocci$(SO_EXT)
clean: $(CLNCACHE)
$(REMOVE) cdemo81 cdemo81.o occidml occidml.o occiobj occiobj.o occiobjo* occiobjm* occiobj.h occiobjout.type