automake
[Top][All Lists]
Advanced

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

specifying -rpath-link in Makefile.am


From: Simbasaurus
Subject: specifying -rpath-link in Makefile.am
Date: Fri, 1 Feb 2008 02:04:39 -0800 (PST)

Hello, i am trying to build a small test project with autotools.
The directory structure is as follows:

myproject: configure.ac Makefile.am
                /src
                      /lib1 : s1.h s1.cpp  Makefile.am --> libmylib1.so
                      /lib2 : s2.h s2.cpp   Makefile.am --> libmylib2.so
                      /main : main.cpp  Makefile.am -->main

libmylib2.so depends on libmylib1.so, and main depends on libmylib2.so

The Makefile.am in myproject/src/lib2 is :

bin_PROGRAMS = libmylib2.so
libmylib2_so_SOURCES = s2.cpp

libmylib2_so_CXXFLAGS = -shared -fPIC -Wall -O0 -I../lib1
libmylib2_so_DEPENDENCIES = ../lib1/libmylib1.so
libmylib2_so_LDFLAGS = -L../lib1 -lmylib1 -Wl,-rpath-link,../lib1

BUT i always get this warning when i compile:

/usr/bin/ld: warning: libmylib1.so, needed by
myproject/src/lib2/libmiha2.so, not found (try using -rpath or -rpath-link)

And also the symbols from libmylib1.so are undefined when i try to build
main.

Does anyone have an insight regarding this situation?

Thank you for your help,
Simbasaurus
-- 
View this message in context: 
http://www.nabble.com/specifying--rpath-link-in-Makefile.am-tp15223377p15223377.html
Sent from the Gnu - Automake - General mailing list archive at Nabble.com.





reply via email to

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