|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH] build: Define preprocessing symbol for library name
We define preprocessing symbols for library name in order to be able to protect
code based on the library name using #ifdef preprocessing directives (e.g.
"#ifdef __liblwip__"). The current solution also replaces dashes with
underscores given that we might have library names containing dashes (e.g.
for "pthread-embedded" library).
Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
support/build/Makefile.rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/support/build/Makefile.rules b/support/build/Makefile.rules
index d90807e0..9666ead0 100644
--- a/support/build/Makefile.rules
+++ b/support/build/Makefile.rules
@@ -386,7 +386,7 @@ $(3): $(2) | prepare
$($(call vprefix_lib,$(1),CINCLUDES)) $($(call
vprefix_lib,$(1),CINCLUDES-y)) \
$(CFLAGS) $(CFLAGS-y) \
$($(call vprefix_lib,$(1),CFLAGS)) $($(call
vprefix_lib,$(1),CFLAGS-y)) \
- $(4) -D__LIBNAME__=$(1) -D__BASENAME__=$(notdir $(2)) \
+ $(4) -D__LIBNAME__=$(1) -D__BASENAME__=$(notdir $(2))
-D__$(subst -,_,$(1))__ \
-c $(2) -o $(3) $(depflags)
)
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |