[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT PATCH] build: Define preprocessing symbol for library name
- To: minios-devel@xxxxxxxxxxxxx
- From: Costin Lupu <costin.lupu@xxxxxxxxx>
- Date: Fri, 2 Aug 2019 15:47:53 +0300
- Cc: felipe.huici@xxxxxxxxx, simon.kuenzer@xxxxxxxxx, sharan.santhanam@xxxxxxxxx
- Delivery-date: Fri, 02 Aug 2019 12:48:18 +0000
- Ironport-phdr: 9a23:i3FDPBeEDXGsMmvoMgvyGWPflGMj4u6mDksu8pMizoh2WeGdxcW5bR7h7PlgxGXEQZ/co6odzbaP6eaxCCdavt6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vMhm6twHcu80ZjYd8KKs61wfErGZPd+lK321jOEidnwz75se+/Z5j9zpftvc8/MNeUqv0Yro1Q6VAADspL2466svrtQLeTQSU/XsTTn8WkhtTDAfb6hzxQ4r8vTH7tup53ymaINH2QLUpUjms86tnVBnlgzoBOjUk8m/Yl9Zwgbpbrhy/uhJxzY3aboaOOfZiYq/QZ88WSHBdUspNUSFKH4Oyb5EID+oEJetVsY79p0ASrRu/AwmnGeXhyiJQhn/rwKY31PguEQbd3Aw8HtIOtm7YrNHoNKcKTOC417XHzS7ZY/NOxDfy85LEcgomofyVW797bMnfyVE3Gg/YgVictJbpMjCV2+gXrWSX8ehtWfihhmI/tg18rSWjyt0vh4TJnI4Z1F7J+CtjzIooKtC0Vkh2asO+HpRKrSGVLY52T9snQ2FvpSk11KULuYW+fCgW0JQnwAPfa+Cff4iI/B3jUOGRLC9mhHJgYr2/hhKy/VK8xe3nTMW0yEtKoTFfntnWsXABzx3T6s6ZRfth5kqtxDmC2x3J5uxHIU04j7TXJ4Ajz7IqmJcfqUHDETX3mEXygq+WbEIk+u2w5uv7ZbXmvYOcN45yig3kNqQuh9S/AfkjPwcSRGiX4/y81KD48kHjWrVKieU6krPFv5DCOcQbuqm5DhdQ0oYi7Ra/DjCm0M8BkXYaMl1FZgyIj4zyNlHKIfD4Fuu/g0+2nDZk2f/GOKftApLXLnjMiL3hZ6py61ZAyAovytBS/5xUBa8FIPLyQk/+qsbUDh8kMwy13+nnCc5w1oUAVm2TBq+WKrjdvUWW6eIyO+OMfpMauC7hK/g54P7jlWQ5mV8Hcqmzx5QXbmq0Hu98LEWffXrsgs0OEWEQsQo7V+HqjkONXiJXZ3moRK0w/C80CJ++B4fZWo+tmKCB3Du8HpBOfWBGC1WMEXDud4meWPcMdTydIslgkzMaT7isUIkh2g+yuw/+0bVoNfDY9TMFtcGr6N8g4uzVlBYpsDB5EcmZ+2WMVH1v2HMFQXkxxq8sj1Z6zwKo1rNkgvoQMcFL+rsdWQAhKZ/aiehnE83aURmHZsqDDkyhFIb1SQotR848loddK312HM+v20jO
- Ironport-sdr: /BJ6uX8Ke4GdUMG1zlQT++b2DXXqoVZ6DUlLu40ldZ14OkzvH4FcvIWrTOF9wFv1fvi9HB9SOv 4Delm8G/TlGw==
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
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
|