summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2015-10-09 11:59:09 +0200
committerVincent Guittot <vincent.guittot@linaro.org>2015-10-23 08:54:44 +0200
commit643ef9e8f8777e55815430f4d778ffd4a83c143b (patch)
tree7fe13f2945d008ef95c916a4e7dcb1515c251386 /src
parentac1a8443e27ab287fd12a21c5aa07377cf8ff3fe (diff)
rt-app: conditionally compile libdl
sched_setattr syscall has been added in v3.14 with deadline scheduler. This new syscall is not always implemented in the lib and libdl is used in this case. We add a test on the presence of sched_setattr in the system environment and compile libdl iff sched_setattr has not been already defined by another library Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 9bca1dc..1fe362d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,5 +3,8 @@ AM_CPPFLAGS = -I$(srcdir)/../libdl/
bin_PROGRAMS = rt-app
rt_app_SOURCES= rt-app_types.h rt-app_args.h rt-app_utils.h rt-app_utils.c rt-app_args.c rt-app.h rt-app.c
rt_app_SOURCES += rt-app_parse_config.h rt-app_parse_config.c
-rt_app_LDADD = $(QRESLIB) ../libdl/libdl.a
+rt_app_LDADD = $(QRESLIB)
+if SET_DLSCHED
+rt_app_LDADD += ../libdl/libdl.a
+endif
dist_bin_SCRIPTS = $(srcdir)/../doc/workgen