automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

linking with static libs


From: Alexander Olefirenko
Subject: linking with static libs
Date: Thu, 28 Sep 2000 13:15:23 +0400

Sorry :) 
here's it :
configure.in:
AC_INIT(acinclude.m4)
AM_INIT_AUTOMAKE(ocicpplib,`cat VERSION`)
AC_PROG_CXX
AC_PROG_CXXCPP
CFLAGS=""
AC_PROG_INSTALL
AM_PROG_LIBTOOL
AC_LANG_CPLUSPLUS
OCICPPLIB_VERSION
ORACLE_PATH
CXXFLAGS="$ORACLE_INCLUDES"
#DEBUG_LEVEL="DLEV_FATAL"
OCICPP_DEBUG_LEVEL
AC_OUTPUT(Makefile ocicpp/Makefile ocicpp/ocicpp.h) 
lib_LTLIBRARIES = libocicpp.la
 
libocicpp_la_SOURCES = \
Connection.cpp Cursor.cpp Lob.cpp OraDate.cpp \
OraDummy.cpp OraError.cpp OraLabel.cpp OraLob.cpp \
OraNumber.cpp OraRaw.cpp OraRefCur.cpp OraRowID.cpp \
OraString.cpp OraType.cpp RowID.cpp db.cpp ocicpp.cpp
 
libocicpp_MAJOR = $(shell echo $(VERSION) | sed 
's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/')
libocicpp_AGE = $(shell echo $(VERSION) | sed 
's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/')
libocicpp_REVISION = $(shell echo $(VERSION) | sed 
's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/')
libocicpp_CURRENT = $(shell expr $(libocicpp_MAJOR) + $(libocicpp_AGE))
 
libocicpp_la_LDFLAGS = -L$(ORACLE_LIBDIR)  $(ORACLE_LIBS) -Wl,-l -Wl,core4
-Wl,-lnlsrtl3  -Wl,-lcommon -version-info
$(libocicpp_CURRENT):$(libocicpp_REVISION):$(libocicpp_AGE)   include_HEADERS =
\ Connection.h Cursor.h Lob.h OraDate.h \ OraDummy.h OraError.h OraLabel.h \
OraLob.h OraNumber.h OraRaw.h OraRefCur.h \
OraRowID.h OraString.h OraType.h RowID.h \
db.h ocicpp.h
 
DISTCLEANFILES = *~ \#*\#
 
MAINTAINERCLEANFILES = Makefile.in   
ORACLE_LIBS=-lclntsh -lcore4 -lnlsrtl3 -lcommon 
core4 nlsrtl3 and common are static libs 
here's that i get during linking :
*** Warning: This library needs some functionality provided by -lcommon.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
 
*** Warning: This library needs some functionality provided by -lcore4.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -lnlsrtl3.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
/bin/sh ../libtool --mode=link c++ 
-I/usr/local/oracle/app/oracle/product/8.0.5/rdbms/demo
-I/usr/local/oracle/app/oracle/product/8.0.5/rdbms/public
-I/usr/local/oracle/app/oracle/product/8.0.5/plsql/public
-I/usr/local/oracle/app/oracle/product/8.0.5/network/public  -o libocicpp.la
-rpath /usr/local/lib -L/usr/local/oracle/app/oracle/product/8.0.5/lib -lclntsh
-lcommon -lcore4 -lnlsrtl3 -version-info 4:0:4 Connection.lo Cursor.lo Lob.lo
OraDate.lo OraDummy.lo OraError.lo OraLabel.lo OraLob.lo OraNumber.lo OraRaw.lo
OraRefCur.lo OraRowID.lo OraString.lo OraType.lo RowID.lo db.lo ocicpp.lo
here's command after warnings ... :
gcc -shared  Connection.lo Cursor.lo Lob.lo OraDate.lo OraDummy.lo OraError.lo 
OraLabel.lo OraLob.lo OraNumber.lo OraRaw.lo OraRefCur.lo OraRowID.lo 
OraString.lo OraType.lo RowID.lo db.lo ocicpp.lo  
-L/usr/local/oracle/app/oracle/product/8.0.5/lib -lclntsh -lc  -Wl,-soname 
-Wl,libocicpp.so.0 -o .libs/libocicpp.so.0.4.0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]