2
** Author(s): Jiyang Xu, Kostis Sagonas, Steve Dawson
3
** Contact: xsb-contact@cs.sunysb.edu
5
** Copyright (C) The Research Foundation of SUNY, 1986, 1993-1998
6
** Copyright (C) ECRC, Germany, 1990
8
** XSB is free software; you can redistribute it and/or modify it under the
9
** terms of the GNU Library General Public License as published by the Free
10
** Software Foundation; either version 2 of the License, or (at your option)
13
** XSB is distributed in the hope that it will be useful, but WITHOUT ANY
14
** WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15
** FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for
18
** You should have received a copy of the GNU Library General Public License
19
** along with XSB; if not, write to the Free Software Foundation,
20
** Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
** $Id: dynload.c,v 1.9 2005/11/29 00:02:16 tswift Exp $
27
#include "xsb_config.h" /* This should appear BEFORE the ifdef! */
29
extern char executable_path_gl[]; /* from orient_xsb.c */
34
#include "dynelf_xsb_i.h"
37
#include "dynaout_xsb_i.h"
40
#include "dynwin32_xsb_i.h"
41
#endif /* FOREIGN_WIN32 */
42
#endif /* FOREIGN_AOUT */
43
#endif /* FOREIGN_ELF */
45
/*----------------------------------------------------------------------*/
47
byte *load_obj(char *pofilename, Psc cur_mod, char *ld_option)
50
if (static_foreign_libraries(get_name(cur_mod)))
51
return load_obj_sta(cur_mod);
54
return load_obj_dyn(pofilename, cur_mod, ld_option);
57
/*----------------------------------------------------------------------*/