From a8cd071927ac144450941e38aa71e52c0de55f52 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 13 Jul 2003 15:23:45 +0000 Subject: [PATCH] LinkSharedOSLibs now strips the grist off targets. Otherwise one couldn't use target names that don't have a grist (like applications, against which their add-ons need to link). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3961 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- Jamrules | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jamrules b/Jamrules index 3b673520f1..abad5a95d4 100644 --- a/Jamrules +++ b/Jamrules @@ -806,13 +806,18 @@ rule LinkSharedOSLibs # "/boot/.../libfoo.so". If the basename starts with "lib" or the thingy # has a dirname or grist, it is added to the NEEDLIBS variable (i.e. the # file will be bound!), otherwise it is prefixed "-l" and added to - # LINKLIBS. + # LINKLIBS. If you want to specify a target that isn't a library and + # also has neither grist nor a dirname, you can prepend "" as + # grist; it will be stripped by this rule. for i in $(>) { local isfile = ; if $(i:D) || $(i:G) { isfile = true ; + if $(i:G) = { + i = $(i:G=) ; + } } else { switch $(i:B) {