Argasek's patch.

This commit is contained in:
Krystian Bacławski
2013-09-07 10:00:40 +02:00
parent eccc196aba
commit 8fd7d0f9cd
6 changed files with 66 additions and 2 deletions
+8 -2
View File
@@ -29,12 +29,14 @@ There are no downloads provided for the time being. I do as much as possible to
* Cygwin 1.7.18 (gcc 4.5.3)
* Ubuntu 12.04 LTS 32-bit (gcc 4.6.3)
* Ubuntu 12.04 LTS 64-bit (gcc 4.6.3) *requires gcc-multilib*
* Ubuntu 12.04 LTS 64-bit (gcc 4.6.3) *Requires gcc-multilib package!*
* MacOS X 10.7.5 (MacPorts - gcc 4.7.3)
* MacOS X 10.8.4 (Homebrew - gcc 4.2.1 from XCode) *Thanks go to Argasek!*
### Documentation
Documentation from Free Software Fundation:
* [gcc 2.95.3](http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc.html)
* [gcc 3.4.6](http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/)
* [binutils](http://sourceware.org/binutils/docs/)
@@ -64,8 +66,12 @@ You have to have following packages installed in your system:
* lha
* perl 5.10
*For MacOSX users*: you'll likely need to have [MacPorts](http://www.macports.org) or [Homebrew](http://brew.sh) installed in order to build the toolchain.
#### How to build?
**Warning:** *Building with `sudo` is not recommended. I'm not responsible for any damage in your system.*
Follow steps listed below:
1. Fetch *m68k-amigaos-toolchain* project to your local drive:
@@ -78,7 +84,7 @@ Follow steps listed below:
`cd archives`
`./fetch.sh`
3. Run `bootstrap.sh` script (with `--prefix` option to specify where to install the toolchain).
3. Run `bootstrap.sh` script (with `--prefix` option to specify where to install the toolchain). Note, that the destination directory must be writeable by the user.
`cd ..`
`./bootstrap.sh --prefix=/opt/m68k-amigaos build`
+3
View File
@@ -111,6 +111,9 @@ function unpack_sources {
for file in $(ls -1d sfdc*); do
[ -f "${file}" ] && rm "${file}"
done
pushd "${SFDC}"
apply_patches "${SFDC}"
popd
unpack_clean "${NDK}" "${NDK_SRC}"
rm -rf ndk_* *.info
+11
View File
@@ -0,0 +1,11 @@
--- sfdc-1.4/Dump.pl 2005-09-24 16:49:49.000000000 +0200
+++ sfdc-1.4/Dump.pl 2013-08-30 15:46:41.000000000 +0200
@@ -19,7 +19,7 @@
my $sfd = $self->{SFD};
print "SFD information\n";
- print "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\n";
+ print "---------------\n";
print "Copyright: $$sfd{'copyright'}\n";
print "RCS ID: $$sfd{'id'}\n";
print "Module name: $$sfd{'libname'}\n";
+11
View File
@@ -0,0 +1,11 @@
--- sfdc-1.4/Makefile.in 2005-09-24 16:49:49.000000000 +0200
+++ sfdc-1.4/Makefile.in 2013-08-30 15:09:31.000000000 +0200
@@ -32,7 +32,7 @@
$(RM) config.status Makefile
install: all
- $(INSTALL) --directory $(bindir) $(mandir)/man1
+ $(INSTALL) -d $(bindir) $(mandir)/man1
$(INSTALL_PROGRAM) $(EXECUTABLE) $(bindir)
$(INSTALL_DATA) $(MAN) $(mandir)/man1
+11
View File
@@ -0,0 +1,11 @@
--- sfdc-1.4/SFDCompile.pod 2005-09-24 16:49:49.000000000 +0200
+++ sfdc-1.4/SFDCompile.pod 2013-08-30 15:49:31.000000000 +0200
@@ -326,7 +326,7 @@
=head1 NOTES
Had I seen F<cvinclude.pl> before I started writing this program, I
-might still have been using fd/clib files. Or maybe not.
+might still have been using fd/clib files. Or maybe not.
=head1 AUTHOR
+22
View File
@@ -0,0 +1,22 @@
--- sfdc-1.4/main.pl 2005-09-24 16:49:49.000000000 +0200
+++ sfdc-1.4/main.pl 2013-08-30 15:13:28.000000000 +0200
@@ -418,7 +418,7 @@
my $comment = '';
my $result = {
- copyright => 'Copyright © 2001 Amiga, Inc.',
+ copyright => 'Copyright (c) 2001 Amiga, Inc.',
id => '',
libname => '',
base => '',
@@ -849,8 +849,8 @@
# Make sure we have the same number of arguments as registers, or,
- # if this is a varargs function, possible one extra, á la "MethodID, ...".
- # Tagcalls always have one extra, á la "Tag, ...".
+ # if this is a varargs function, possible one extra, a la "MethodID, ...".
+ # Tagcalls always have one extra, a la "Tag, ...".
if (($prototype->{type} eq 'varargs' &&
$prototype->{subtype} eq 'tagcall' &&