/[meta-cvs]/meta-cvs/F-179FF64755903FAEAAB14CB0C83B7736.sh
ViewVC logotype

Contents of /meta-cvs/F-179FF64755903FAEAAB14CB0C83B7736.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations)
Fri Jun 24 07:22:53 2005 UTC (8 years, 9 months ago) by kaz
Branch: MAIN
CVS Tags: asdf-import-branch~merged-to-HEAD-0, mcvs-1-1-98, asdf-import-branch~branch-point, HEAD
Branch point for: asdf-import-branch
Changes since 1.3: +5 -0 lines
File MIME type: application/x-sh
Add hack to get our own main() function which calls the one
inside CLISP.

* code/unix-bindings/link.sh: Add objcopy hack.

* code/unix-bindings/wrap.c (main): New function.
1 kaz 1.2 file_list="$file_list"' unix.o'
2     mod_list="$mod_list"' unix'
3 kaz 1.1 make clisp-module CC="${CC}" CFLAGS="${CFLAGS}" INCLUDES="$absolute_linkkitdir"
4 kaz 1.3 NEW_FILES="$file_list wrap.o"
5     NEW_LIBS="$file_list wrap.o"
6 kaz 1.1 NEW_MODULES="$mod_list"
7     TO_LOAD='unix'
8 kaz 1.4
9     # hack to get our own main()
10    
11     FILES="$(echo $FILES | sed -e 's/lisp.a //')"
12     objcopy --redefine-sym main=clisp_main "$absolute_sourcedir"/lisp.a "$absolute_destinationdir"/lisp.a

  ViewVC Help
Powered by ViewVC 1.1.5