Use libtool syntax in LDADD
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 26 Mar 2020 21:18:41 +0000 (17:18 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 2 Jul 2020 16:44:52 +0000 (12:44 -0400)
Use .la files to add link dependencies between libraries, linking
directly to the content of '.libs' is relying on an implementation
detail of libtool.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I6fe0157e23f13cd69c436111a2e743fa1c763d64

liblttng-ust-cyg-profile/Makefile.am
liblttng-ust-java-agent/jni/common/Makefile.am
liblttng-ust-java-agent/jni/jul/Makefile.am
liblttng-ust-java-agent/jni/log4j/Makefile.am
liblttng-ust-java/Makefile.am
liblttng-ust-libc-wrapper/Makefile.am
liblttng-ust-python-agent/Makefile.am

index 100ca4adb91ef586efdaee33091b5769bd786719..3b1e7ebaaa8882cc35069cfaf028e73da05673ca 100644 (file)
@@ -9,8 +9,7 @@ liblttng_ust_cyg_profile_la_SOURCES = \
        lttng-ust-cyg-profile.h
 
 liblttng_ust_cyg_profile_la_LIBADD = \
-       -L$(top_builddir)/liblttng-ust/.libs \
-       -llttng-ust \
+       $(top_builddir)/liblttng-ust/liblttng-ust.la \
        $(DL_LIBS)
 
 liblttng_ust_cyg_profile_fast_la_SOURCES = \
@@ -18,8 +17,7 @@ liblttng_ust_cyg_profile_fast_la_SOURCES = \
        lttng-ust-cyg-profile-fast.h
 
 liblttng_ust_cyg_profile_fast_la_LIBADD = \
-       -L$(top_builddir)/liblttng-ust/.libs \
-       -llttng-ust \
+       $(top_builddir)/liblttng-ust/liblttng-ust.la \
        $(DL_LIBS)
 
 dist_noinst_SCRIPTS = run run-fast
index 7612932a80e97f32baf07026c18a656ad284261e..1baf306d83368bd0ba6d231cba1a670adab66b9d 100644 (file)
@@ -5,4 +5,5 @@ liblttng_ust_context_jni_la_SOURCES = lttng_ust_context.c lttng_ust_context.h
 
 nodist_liblttng_ust_context_jni_la_SOURCES = org_lttng_ust_agent_context_LttngContextApi.h
 
-liblttng_ust_context_jni_la_LIBADD = -lc -L$(top_builddir)/liblttng-ust/.libs -llttng-ust
+liblttng_ust_context_jni_la_LIBADD = -lc \
+       $(top_builddir)/liblttng-ust/liblttng-ust.la
index 45bc1b5647040620434dab4a307fc9c79366cd9a..39ff52a0fc5c060ccb9f59ef1093b01ff58b95f4 100644 (file)
@@ -7,7 +7,5 @@ liblttng_ust_jul_jni_la_SOURCES = lttng_ust_jul.c \
 nodist_liblttng_ust_jul_jni_la_SOURCES = org_lttng_ust_agent_jul_LttngJulApi.h
 
 liblttng_ust_jul_jni_la_LIBADD = -lc \
-       -L$(top_builddir)/liblttng-ust/.libs \
-       -L$(top_builddir)/liblttng-ust-java-agent/jni/common/.libs \
-       -llttng-ust-context-jni \
-       -llttng-ust
+       $(top_builddir)/liblttng-ust/liblttng-ust.la \
+       $(top_builddir)/liblttng-ust-java-agent/jni/common/liblttng-ust-context-jni.la
index 5e5fe0fcf1ffc238ea39ca802f3ce75b8f97c1a3..188597d24a9e936c4af217823f4d48ab669e6107 100644 (file)
@@ -7,7 +7,5 @@ liblttng_ust_log4j_jni_la_SOURCES = lttng_ust_log4j.c \
 nodist_liblttng_ust_log4j_jni_la_SOURCES = org_lttng_ust_agent_log4j_LttngLog4jApi.h
 
 liblttng_ust_log4j_jni_la_LIBADD = -lc \
-       -L$(top_builddir)/liblttng-ust/.libs \
-       -L$(top_builddir)/liblttng-ust-java-agent/jni/common/.libs \
-       -llttng-ust-context-jni \
-       -llttng-ust
+       $(top_builddir)/liblttng-ust/liblttng-ust.la \
+       $(top_builddir)/liblttng-ust-java-agent/jni/common/liblttng-ust-context-jni.la
index 4975b8b0989801052d1486c9e2a403aaebb13d7d..387ddba9431c4ceb4471f8b85a8cd3a5018b0b28 100644 (file)
@@ -12,7 +12,8 @@ lib_LTLIBRARIES = liblttng-ust-java.la
 liblttng_ust_java_la_SOURCES = LTTngUst.c lttng_ust_java.h
 nodist_liblttng_ust_java_la_SOURCES = org_lttng_ust_LTTngUst.h
 
-liblttng_ust_java_la_LIBADD = -lc -L$(top_builddir)/liblttng-ust/.libs -llttng-ust
+liblttng_ust_java_la_LIBADD = -lc \
+       $(top_builddir)/liblttng-ust/liblttng-ust.la
 
 $(jarfile): classnoinst.stamp
        $(JAR) cf $(JARFLAGS) $@ $(pkgpath)/*.class
index 0787d8d514a20395f434ec81a16802fba122f3d1..68aa02c7d024e3b2579fe404677b4cf757b38a6f 100644 (file)
@@ -9,8 +9,7 @@ liblttng_ust_libc_wrapper_la_SOURCES = \
        ust_libc.h
 
 liblttng_ust_libc_wrapper_la_LIBADD = \
-       -L$(top_builddir)/liblttng-ust/.libs \
-       -llttng-ust \
+       $(top_builddir)/liblttng-ust/liblttng-ust.la \
        $(DL_LIBS)
 
 liblttng_ust_pthread_wrapper_la_SOURCES = \
@@ -18,8 +17,7 @@ liblttng_ust_pthread_wrapper_la_SOURCES = \
        ust_pthread.h
 
 liblttng_ust_pthread_wrapper_la_LIBADD = \
-       -L$(top_builddir)/liblttng-ust/.libs \
-       -llttng-ust \
+       $(top_builddir)/liblttng-ust/liblttng-ust.la \
        $(DL_LIBS)
 
 dist_noinst_SCRIPTS = run
index 2c6668ae766c2549b39d05414c24aa1aa772a076..077e50c5fb4d581eddf31151dd994161f6d9581a 100644 (file)
@@ -2,7 +2,9 @@
 AM_CPPFLAGS = -I$(top_srcdir)/include/ \
        -I$(top_builddir)/include/
 AM_CFLAGS += -fno-strict-aliasing
+
 lib_LTLIBRARIES = liblttng-ust-python-agent.la
+
 liblttng_ust_python_agent_la_SOURCES = lttng_ust_python.c lttng_ust_python.h
-liblttng_ust_python_agent_la_LIBADD = -lc -llttng-ust \
-       -L$(top_builddir)/liblttng-ust/.libs
+liblttng_ust_python_agent_la_LIBADD = -lc \
+       $(top_builddir)/liblttng-ust/liblttng-ust.la
This page took 0.028119 seconds and 4 git commands to generate.