Как избежать генерации файлов .la при кросс-компиляции - PullRequest
0 голосов
/ 15 января 2020

Я пытаюсь кросс-компилировать несколько программ на моем компьютере после кросс-компиляции на моем компьютере, я хотел бы перенести их (скопировать и вставить) на другой компьютер. Вот пример .la файлов

cat liblttng-ust.la
# liblttng-ust.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.6 Debian-2.4.6-2
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='liblttng-ust.so.0'

# Names of this library.
library_names='liblttng-ust.so.0.0.0 liblttng-ust.so.0 liblttng-ust.so'

# The name of the static archive.
old_library=''

# Linker flags that cannot go in dependency_libs.
inherited_linker_flags=' -pthread'

# Libraries that this one depends upon.
dependency_libs=' -L/opt/ursdk-cxx/i686-pc-linux-gnu/sysroot//usr/local/lib /opt/ursdk-cxx/i686-pc-linux-gnu/sysroot//usr/local/lib/liblttng-ust-tracepoint.la -lrt -ldl /opt/ursdk-cxx/i686-pc-linux-gnu/sysroot//usr/local/lib/liburcu-bp.la /opt/ursdk-cxx/i686-pc-linux-gnu/sysroot//usr/local/lib/liburcu-cds.la /opt/ursdk-cxx/i686-pc-linux-gnu/sysroot//usr/local/lib/liburcu-common.la -lpthread'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for liblttng-ust.
current=0
age=0
revision=0

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/opt/ursdk-cxx/i686-pc-linux-gnu/sysroot//usr/local/lib'

Я вижу, что libdir & dependency_libs - это абсолютный путь, ссылающийся на местоположение на компьютере сборки. Я хотел бы перенести файлы на другой компьютер в /usr/local/lib. Но абсолютные пути были бы неправильными.

Есть ли способ избежать .la их генерации при кросс-компиляции или избежать абсолютного пути?

Спасибо

...