From 007eb5f23c526a33a31a715955deefddaf9e0854 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 16 Jul 2003 20:56:37 +0000 Subject: [PATCH] Added "-soname=_APP_" to the linker flags of the high-level rules building applications. Also added a third parameter, , where it was missing. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3995 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- Jamrules | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/Jamrules b/Jamrules index abad5a95d4..cb51172617 100644 --- a/Jamrules +++ b/Jamrules @@ -307,11 +307,14 @@ actions C++ rule App { - # App : ; + # App : : ; SetupIncludes ; SetupObjectsDir ; - Main $(<) : $(>) ; - MakeLocate $(<) : $(OBOS_APPS_DIR) ; + Main $(1) : $(2) ; + MakeLocate $(1) : $(OBOS_APPS_DIR) ; + LinkSharedOSLibs $(1) : $(3) ; + LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ] + -Xlinker -soname=_APP_ ; } rule BinCommand @@ -322,6 +325,8 @@ rule BinCommand Main $(1) : $(2) ; MakeLocate $(1) : $(OBOS_BIN_DIR) ; LinkSharedOSLibs $(1) : $(3) ; + LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ] + -Xlinker -soname=_APP_ ; } rule StdBinCommands @@ -342,21 +347,27 @@ rule StdBinCommands rule Preference { - # Preference : ; + # Preference : : ; SetupIncludes ; SetupObjectsDir ; - Main $(<) : $(>) ; - MakeLocate $(<) : $(OBOS_PREFS_DIR) ; + Main $(1) : $(2) ; + MakeLocate $(1) : $(OBOS_PREFS_DIR) ; + LinkSharedOSLibs $(1) : $(3) ; + LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ] + -Xlinker -soname=_APP_ ; } rule Server { - # Server : ; + # Server : : ; SetupIncludes ; SetupObjectsDir ; - Main $(<) : $(>) ; - MakeLocate $(<) : $(OBOS_SERVER_DIR) ; + Main $(1) : $(2) ; + MakeLocate $(1) : $(OBOS_SERVER_DIR) ; + LinkSharedOSLibs $(1) : $(3) ; + LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ] + -Xlinker -soname=_APP_ ; } # test pseudo targets @@ -698,10 +709,11 @@ rule R5KernelAddon rule Translator { - # Translator : ; + # Translator : : ; SetupIncludes ; SetupObjectsDir ; Main $(1) : $(2) ; + LinkSharedOSLibs $(1) : $(3) ; # Create output dir path for translator local targetdir; @@ -821,6 +833,7 @@ rule LinkSharedOSLibs } else { switch $(i:B) { + # XXX: _APP_ and _KERNEL_ should not be needed for ELF. case _APP_ : isfile = true ; case _KERNEL_ : isfile = true ; case *.so : isfile = true ;