add support for BeOS-target

git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9573 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe
2004-10-28 18:08:46 +00:00
parent 0d415dc8a4
commit 2a516d7eb9
7 changed files with 60 additions and 5 deletions

View File

@@ -301,7 +301,8 @@ main (int argc, char **argv)
link_info.notice_all = FALSE;
link_info.nocopyreloc = FALSE;
link_info.new_dtags = FALSE;
link_info.combreloc = TRUE;
/* disable combreloc by default for BeOS: */
link_info.combreloc = FALSE;
link_info.eh_frame_hdr = FALSE;
link_info.strip_discarded = TRUE;
link_info.strip = strip_none;

View File

@@ -985,7 +985,12 @@ parse_args (unsigned argc, char **argv)
/* When creating a shared library, the default
behaviour is to ignore any unresolved references. */
if (link_info.unresolved_syms_in_objects == RM_NOT_YET_SET)
#ifdef __BEOS__
/* BeOS uses -shared for apps, but wants to report undefined symbols for them */
link_info.unresolved_syms_in_objects = how_to_report_unresolved_symbols;
#else
link_info.unresolved_syms_in_objects = RM_IGNORE;
#endif
if (link_info.unresolved_syms_in_shared_libs == RM_NOT_YET_SET)
link_info.unresolved_syms_in_shared_libs = RM_IGNORE;
}