Module: kamailio
Branch: master
Commit: 98634783f1c7268e73fc39acabf9c4778e53e799
URL:
https://github.com/kamailio/kamailio/commit/98634783f1c7268e73fc39acabf9c47…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2017-09-26T10:40:07-04:00
utils/db_oracle: update Makefile for oracle 12.2 client
---
Modified: utils/db_oracle/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/98634783f1c7268e73fc39acabf9c47…
Patch:
https://github.com/kamailio/kamailio/commit/98634783f1c7268e73fc39acabf9c47…
---
diff --git a/utils/db_oracle/Makefile b/utils/db_oracle/Makefile
index a530ec7730..a617081229 100644
--- a/utils/db_oracle/Makefile
+++ b/utils/db_oracle/Makefile
@@ -9,56 +9,9 @@ NAME=kamailio_orasel
include ../../src/Makefile.sources
-ORAPATH=
-
-# use for multiple client sdk version install
-ifneq ($(ORAVERSION),)
- ORAVERDIR=/$(ORAVERSION)
-endif
-
-# use include/library path's for full client installation
-ifneq ($(ORAHOME),)
- DEFS +=-I$(ORAHOME)/include
- LIBS +=-L$(ORAHOME)/lib
-ifeq ($(ORAPATH),)
- ORAPATH=$(ORAHOME)/lib
-endif
-else
-# use standard know paths oci.h locations (linux)
- DEFS +=-I$(LOCALBASE)/include/oracle$(ORAVERDIR) \
- -I$(SYSBASE)/include/oracle$(ORAVERDIR)
-endif
-
-# search 'so' path if it non standard (possible liboclntsh locations on linux)
-ifeq ($(ORAPATH),)
- ORAPATH=$(shell [ -f $(LOCALBASE)/lib64/oracle$(ORAVERDIR)/libocci.so ] && \
- echo $(LOCALBASE)/lib64/oracle$(ORAVERDIR) )
-endif
-ifeq ($(ORAPATH),)
- ORAPATH=$(shell [ -f $(SYSBASE)/lib64/oracle$(ORAVERDIR)/libocci.so ] && \
- echo $(SYSBASE)/lib64/oracle$(ORAVERDIR) )
-endif
-ifeq ($(ORAPATH),)
- ORAPATH=$(shell [ -f $(SYSBASE)/lib/oracle$(ORAVERDIR)/libocci.so ] && \
- echo $(SYSBASE)/lib/oracle$(ORAVERDIR) )
-endif
-ifeq ($(ORAPATH),)
- ORAPATH=$(shell [ -f $(SYSBASE)/lib/oracle$(ORAVERDIR)/libocci.so ] && \
- echo $(SYSBASE)/lib/oracle$(ORAVERDIR) )
-endif
-
-ifneq ($(ORAPATH),)
- LIBS +=-L$(ORAPATH)
-endif
-
-LIBS +=-locci -lclntsh
-
-#DEFS +=-DLINUX -D_GNU_SOURCE -D_REENTRANT
-#LIBS +=-lpthread
-
-ifneq ($(ORAPATH),)
- LIBS +=-Wl,-rpath $(ORAPATH)
-endif
+# default path for oracle 12.2 client
+DEFS +=-I/usr/include/oracle/12.2/client64
+LIBS +=-locci -lclntsh -L/usr/lib/oracle/12.2/client64/lib
include ../../src/Makefile.rules