From eb619071ca29d4060c689a46f118a1498d66cd8b Mon Sep 17 00:00:00 2001
From: Luca Erbetta <luca.erbetta@skywarder.eu>
Date: Mon, 24 May 2021 23:31:37 +0200
Subject: [PATCH] [SBS] Fixed bug where compiling a single entrypoint would not
 work

---
 sbs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbs b/sbs
index 8dac7780e..33a0399db 100755
--- a/sbs
+++ b/sbs
@@ -282,7 +282,7 @@ def importLibs(path):
         stype = conf.get(i, 'Type')
         if stype == 'library':
             if i not in extlibs:
-                extlibs[i] =  {'subdir': projconf['SBS_BASE'] + "/" +  conf.get(i, 'Subdir'),
+                extlibs[i] =  {'subdir': '' if conf.get(i, 'Subdir') == '' else projconf['SBS_BASE'] + "/" +  conf.get(i, 'Subdir'),
                             'libs': [projconf['SBS_BASE'] + "/" + x.strip() for x in conf.get(i, 'Libs').split()],
                             'defines':  conf.get(i, 'Defines').strip(),
                             'includes': [projconf['SBS_BASE'] + "/" + x.strip() for x in conf.get(i, 'Includes').split()]}
-- 
GitLab