[Top][All Lists]

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

Re: automake problem with multiple "-rpath"

From: aotto
Subject: Re: automake problem with multiple "-rpath"
Date: Mon, 10 May 2021 19:14:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0

On 10.05.21 15:10, Thomas Jahns wrote:

you are confusing the -rpath /some/path option to libtool, which tells libtool where a library will be installed and the -Wl,-rpath,/some/other/path option to ld. If you replaced -rpath .../lib by -Wl,-rpath,.../lib everything should work as expected. Also relative rpath values will probably not work as expected unless the library and executabl in question are from one package. Also these are options to be used by whoever packages/installs the software and thus have no place in verbatim but rather should be added to LDFLAGS or similar during configure.

Regards, Thomas

To be honest I don't want to set the -rpath at all…

what I have :

#1 depend on
#2 everything is in the SAME directory
#3 the directory is already KNOWN to

> ls -ald *readline*
-rw-r--r-- 1 dev1usr users 478680 29. Apr 22:28 libreadline.a
lrwxrwxrwx 1 dev1usr users     18 29. Apr 22:28 -> lrwxrwxrwx 1 dev1usr users     18 29. Apr 22:28 ->
-rw-r--r-- 1 dev1usr users 432556 29. Apr 22:28
-rwxr-xr-x 1 dev1usr users  67656 10. Mai 18:55
-rwxr-xr-x 1 dev1usr users   1109 10. Mai 18:55
lrwxrwxrwx 1 dev1usr users     23 10. Mai 18:55 ->


important : -> and ->

error: not found


The EXE dlopen "libtclreadline" and the FIRST soft-link to "" is resolved and "" is dlopend'd, but the "" depend on "" this
is a link to ""



EXE->dlopen path/to/ -> symlink to -> depend on
-> symlink FAIL

everything is in the SAME directory and the directory is KNOWN because FIRST symlink as absolute path

-> I spend now near ONE workday to just dlopen a stupid file !!

I prefer a solution with no LD_LIBRARY_PATH and no -rpath at all because the directory is KNOWN to the
linker and only the "stupid" programming of "" making things bad.


reply via email to

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