Dmitry Eremin-Solenikov(lumag) replied on github web page:

configure.ac
@@ -172,6 +172,16 @@ AS_IF([test "${with_platform}" = "linux-generic"],
 AC_DEFINE_UNQUOTED([IMPLEMENTATION_NAME], ["$IMPLEMENTATION_NAME"],
                   [Define to the name of the implementation])
 
+##########################################################################
+# Build examples/tests dynamically
+##########################################################################
+AC_ARG_ENABLE([static-tests],


Comment:
I'll change to static-applications

> Dmitry Eremin-Solenikov(lumag) wrote:
> Hmm. Strange. Those libs should come from -lodp-linux, because they are 
> included into .la file.


>> bogdanPricope wrote
>> 'static-test' is confusing since you are also building example applications. 
>> What about 'static-link' or 'static-link-applications'?


>>> bogdanPricope wrote
>>> I am using something similar for ODP code instrumentation with PAPI project 
>>> in Caterpillar. Yet, I am surprised you don't get link errors when building 
>>> examples with shared libs.
>>> 
>>> +if CODE_INSTRUM
>>>  +AM_LDFLAGS = -L$(LIB) -lssl -lcrypto -latomic
>>>  +else
>>>   AM_LDFLAGS = -L$(LIB) -static
>>>  +endif


https://github.com/Linaro/odp/pull/390#discussion_r162045796
updated_at 2018-01-17 13:26:16

Reply via email to