Patch: GCCSDK autobuilder support for oslib
John Tytgat
John.Tytgat at aaug.net
Fri Dec 30 18:05:46 GMT 2005
Please find attached a patch which facilitates GCCSDK autobuilder support
for oslib. I would like to add oslib and a couple of other libraries
depending in oslib, like rufl, in GCCSDK autobuilder as soon this patch is
applied.
The changes summerized:
* CROSSPATH: is replaced by GCCSDK_INSTALL_CROSSBIN (which just got
commited in GCCSDK CVS tree). This allows cross-compilation when
the cross compile is installed at another place than
/home/riscos/cross/bin.
* install OSLib32.o and OSLib headers in GCCSDK_INSTALL_ENV (also
an environment variable just added in GCCSDK CVS tree).
* OSLibSupport: cleaner signal usage and host compiler support.
* MacOS X build problems fixed (cp -u option, sed & newline/tab)
The changes in more detail:
* !OsLib/!Readme: the default location /home/riscos is no longer
assumed.
* !OsLib/GNUmakefile (CROSSPATH): replaced by GCCSDK_INSTALL_CROSSBIN
(CP): no longer using -u option as it is not supported by MacOS X
Added install rule which copies OSLib32.o and OSLib headers to
GCCSDK_INSTALL_ENV.
* !OsLib/Source/GNUmakefile: Likewise.
* !OsLib/Source/GNUmakefile.source: Likewise.
* !OsLib/Source/Test/Test1/GNUmakefile: Likewise.
* !OsLib/Source/Test/TestFW/GNUmakefile: Likewise.
* !OsLib/Source/Test/readvarval/GNUmakefile: Likewise.
* !OsLib/examples/GNUmakefile: Likewise.
* !OsLib/Source/Test/Test/GNUmakefile: Likewise. Workaround for
BSD sed and newline/tab characters (MacOS X).
* !OsLib/GNUmakefile.settings: new file, defines
GCCSDK_INSTALL_CROSSBIN to the default /home/riscos/cross/bin
directory if not defined by GCCSDK itself.
* !OsLib/Source/GNUmakefile.settings: new file, checks existence
of SOURCEDIR variable and defines BINDIR relatively to that.
* !OsLib/OSLibSupport/*: more rational signal definition when
cross-compiling. Typical RISC OS signals like SIGOSERROR do not
make sense on native host compilers.
* !OsLib/Tools/support/*: Likewise.
* !OsLib/Tools/GNUmakefile.source: use explicitly the host compiler
as otherwise in GCCSDK autobuilder 'gcc' means the cross-compiler.
* !OsLib/Tools/DefMod2/defmod/Build_GNU/GNUmakefile: Likewise.
* !OsLib/Tools/DefMod2/GNUmakefile: removed useless variable
definitions.
* !OsLib/Tools/DefMod2/defmod/sources/cstrong.c: tracef() typo
resulted in compiler error when TRACE was specified.
* !OsLib/Tools/DefMod2/defmod/sources/objasm.c: removed the
"-target SA110" assembler option as it is no longer needed.
* !OsLib/docs/Unix_Build: updated to reflect some of the changes
made.
These changes only affect the cross-compile build, not the produced binaries.
Happy New Year,
John.
--
John Tytgat, in his comfy chair at home BASS
John.Tytgat at aaug.net ARM powered, RISC OS driven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oslib.diff.tgz
Type: application/gzip
Size: 6053 bytes
Desc: not available
URL: <http://lists.compton.nu/pipermail/oslib-user/attachments/20051230/0f739c6b/attachment.bin>
More information about the oslib-user
mailing list