[PATCH 04/25] libdl: Avoid command line defines

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Sep 14 13:18:32 UTC 2018


Update #3375.
---
 cpukit/libdl/Makefile.am | 1 -
 cpukit/libdl/rtl-obj.c   | 3 +++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/cpukit/libdl/Makefile.am b/cpukit/libdl/Makefile.am
index 8b95a7d91c..e58b332713 100644
--- a/cpukit/libdl/Makefile.am
+++ b/cpukit/libdl/Makefile.am
@@ -29,7 +29,6 @@ libdl_a_SOURCES = \
   rtl-unresolved.c
 
 libdl_a_SOURCES += rtl-mdreloc- at RTEMS_CPU@.c
-libdl_a_CPPFLAGS = $(AM_CPPFLAGS) -DRTEMS_RTL_RAP_LOADER=1 -DRTEMS_RTL_ELF_LOADER=1
 
 endif
 
diff --git a/cpukit/libdl/rtl-obj.c b/cpukit/libdl/rtl-obj.c
index 5c2213e611..45deccfb44 100644
--- a/cpukit/libdl/rtl-obj.c
+++ b/cpukit/libdl/rtl-obj.c
@@ -33,6 +33,9 @@
 #include "rtl-string.h"
 #include <rtems/rtl/rtl-trace.h>
 
+#define RTEMS_RTL_ELF_LOADER 1
+#define RTEMS_RTL_RAP_LOADER 1
+
 #if RTEMS_RTL_RAP_LOADER
 #include "rtl-rap.h"
 #define RTEMS_RTL_RAP_LOADER_COUNT 1
-- 
2.13.7




More information about the devel mailing list