From 16bbd13af7244cc0967d9f12327f63ffcaeac4bd Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 13 Jul 2005 18:06:40 +0000 Subject: Diego Casorran patches to make (lib)curl build fine on Amiga again --- src/config-amigaos.h | 10 ++++++++-- src/makefile.amiga | 8 ++++---- 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/config-amigaos.h b/src/config-amigaos.h index 0f904a30f..e067c9662 100644 --- a/src/config-amigaos.h +++ b/src/config-amigaos.h @@ -17,14 +17,20 @@ #define HAVE_SYS_TIME_H 1 #define HAVE_TIME_H 1 #define TIME_WITH_SYS_TIME 1 -#define HAVE_TERMIOS_H 1 -#define HAVE_FTRUNCATE 1 + +#if 0 +# define HAVE_TERMIOS_H 1 +# define HAVE_FTRUNCATE 1 +#endif #define HAVE_PWD_H 1 #ifndef F_OK # define F_OK 0 #endif +#ifndef O_RDONLY +# define O_RDONLY 0x0000 /* open for reading only */ +#endif #ifndef LONG_MAX # define LONG_MAX 0x7fffffffL /* max value for a long */ #endif diff --git a/src/makefile.amiga b/src/makefile.amiga index 51e084d4b..9e03e070f 100644 --- a/src/makefile.amiga +++ b/src/makefile.amiga @@ -7,9 +7,9 @@ ATCPSDKI= /GG/netinclude -CC = gcc -CFLAGS = -I$(ATCPSDKI) -m68020-60 -noixemul -I. -I../include -W -Wall -LIBS = ../lib/libcurl.a -lsslnix -lcryptonix -lz +CC = m68k-amigaos-gcc +CFLAGS = -I$(ATCPSDKI) -m68020-60 -O2 -msoft-float -noixemul -g -I. -I../include -W -Wall +LIBS = ../lib/libcurl.a -lssl -lcrypto -lz MANPAGE = ../docs/curl.1 README = ../docs/MANUAL MKHELP = ../src/mkhelp.pl @@ -18,7 +18,7 @@ OBJS = getpass.c hugehelp.c main.c urlglob.c writeenv.c writeout.c all: hugehelp.c $(OBJS:.c=.o) - $(CC) $(CFLAGS) -s -o cURL $(OBJS:.c=.o) $(LIBS) + $(CC) $(CFLAGS) -o cURL $(OBJS:.c=.o) $(LIBS) -Wl,-Map,cURL.map,--cref hugehelp.c: $(README) $(MANPAGE) mkhelp.pl rm -f hugehelp.c -- cgit v1.2.3