[Top][All Lists]

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

specifying -rpath-link in

From: Simbasaurus
Subject: specifying -rpath-link in
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:

                      /lib1 : s1.h s1.cpp -->
                      /lib2 : s2.h s2.cpp -->
                      /main : main.cpp -->main depends on, and main depends on

The in myproject/src/lib2 is :

libmylib2_so_SOURCES = s2.cpp

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

BUT i always get this warning when i compile:

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

And also the symbols from are undefined when i try to build

Does anyone have an insight regarding this situation?

Thank you for your help,
View this message in context:
Sent from the Gnu - Automake - General mailing list archive at

reply via email to

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