Skip to content
Snippets Groups Projects
Commit def7a072 authored by Utz-Uwe Haus's avatar Utz-Uwe Haus
Browse files

[liberl] add embedded build option

parent 588da11d
No related branches found
No related tags found
1 merge request!49Draft: Resolve "liberl installation issue on devel"
Pipeline #89821 failed
...@@ -31,10 +31,17 @@ ...@@ -31,10 +31,17 @@
# #
ACLOCAL_AMFLAGS=-I m4 ACLOCAL_AMFLAGS=-I m4
noinst_LTLIBRARIES =
lib_LTLIBRARIES =
if EMBEDDED
noinst_LTLIBRARIES += liberl.la
else
lib_LTLIBRARIES += liberl.la
endif
# ERL library # ERL library
SUBDIRS = erl . tests SUBDIRS = erl . tests
lib_LTLIBRARIES = liberl.la
liberl_la_SOURCES = include/erl_status.h \ liberl_la_SOURCES = include/erl_status.h \
include/erl_logging.h \ include/erl_logging.h \
include/erl_threadpool.h \ include/erl_threadpool.h \
......
...@@ -37,6 +37,16 @@ AC_PROG_CC ...@@ -37,6 +37,16 @@ AC_PROG_CC
AM_PROG_AR AM_PROG_AR
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects tar-ustar]) AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects tar-ustar])
AC_ARG_ENABLE([embedded],
[AS_HELP_STRING([--enable-embedded],
[Enable embedded support (build convenience library, no symbol versioning) @<:@default=no@:>@])
],
[ac_asm_symver_support=0
icc_symver_hack=1],
[enable_embedded=no])
AM_CONDITIONAL([EMBEDDED], [test x"$enable_embedded" = x"yes"])
AC_ARG_ENABLE([numa], AC_ARG_ENABLE([numa],
[AS_HELP_STRING([--enable-numa],[Disable libnuma usage (default: use if detected)])], [AS_HELP_STRING([--enable-numa],[Disable libnuma usage (default: use if detected)])],
[enable_numa=$enableval],[enable_numa=yes]) [enable_numa=$enableval],[enable_numa=yes])
......
...@@ -84,7 +84,7 @@ erl__get_binding_index_rr1(const struct erl_threadpool_attr *attr, int nnodes, i ...@@ -84,7 +84,7 @@ erl__get_binding_index_rr1(const struct erl_threadpool_attr *attr, int nnodes, i
int int
erl__get_binding_index_rrall(const struct erl_threadpool_attr *attr, int nnodes, int ncpus, int tid); erl__get_binding_index_rrall(const struct erl_threadpool_attr *attr, int nnodes, int ncpus, int tid);
int (*erl__get_binding_index[ERL_tp_cpubind__max]) static int (*const erl__get_binding_index[ERL_tp_cpubind__max])
(const struct erl_threadpool_attr *attr, int nnodes, int ncpus, int tid) = { (const struct erl_threadpool_attr *attr, int nnodes, int ncpus, int tid) = {
erl__get_binding_error, erl__get_binding_error,
erl__get_binding_index_fixed, erl__get_binding_index_fixed,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment