mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Add recipe for SDCC.
This commit is contained in:
194
dev-embedded/sdcc/patches/sdcc-3.4.0.patchset
Normal file
194
dev-embedded/sdcc/patches/sdcc-3.4.0.patchset
Normal file
@@ -0,0 +1,194 @@
|
||||
From 8dabca703681d397595e7076c19f07f523104f69 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Sun, 14 Sep 2014 12:25:39 +0200
|
||||
Subject: let sdbinutils know about Haiku.
|
||||
|
||||
|
||||
diff --git a/support/sdbinutils/bfd/config.bfd b/support/sdbinutils/bfd/config.bfd
|
||||
index a812403..31363e2 100644
|
||||
--- a/support/sdbinutils/bfd/config.bfd
|
||||
+++ b/support/sdbinutils/bfd/config.bfd
|
||||
@@ -693,6 +693,9 @@ case "${targ}" in
|
||||
targ_defvec=bfd_elf32_i386_vec
|
||||
targ_selvecs="i386pe_vec i386pei_vec"
|
||||
;;
|
||||
+ i[3-7]86-*-haiku*)
|
||||
+ targ_defvec=bfd_elf32_i386_vec
|
||||
+ ;;
|
||||
i[3-7]86-*-interix*)
|
||||
targ_defvec=i386pei_vec
|
||||
targ_selvecs="i386pe_vec"
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
|
||||
From 850a29c40087948fdf36dc80b30a8870fc6858c3 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Sun, 14 Sep 2014 12:26:14 +0200
|
||||
Subject: Missing include.
|
||||
|
||||
|
||||
diff --git a/sim/ucsim/cmd.src/newcmdposixcl.h b/sim/ucsim/cmd.src/newcmdposixcl.h
|
||||
index 5050d2f..ef3ed70 100644
|
||||
--- a/sim/ucsim/cmd.src/newcmdposixcl.h
|
||||
+++ b/sim/ucsim/cmd.src/newcmdposixcl.h
|
||||
@@ -32,6 +32,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
#include "newcmdcl.h"
|
||||
#include "cmdutil.h"
|
||||
|
||||
+#include <sys/select.h>
|
||||
|
||||
/*
|
||||
* Command fd console
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
|
||||
From 8f059ca65eac475ce5c80852a6f6a4b499f80b06 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Sun, 14 Sep 2014 12:59:31 +0200
|
||||
Subject: strings.h fix.
|
||||
|
||||
|
||||
diff --git a/sim/ucsim/pobj.cc b/sim/ucsim/pobj.cc
|
||||
index e809980..166d8b1 100644
|
||||
--- a/sim/ucsim/pobj.cc
|
||||
+++ b/sim/ucsim/pobj.cc
|
||||
@@ -29,6 +29,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <strings.h>
|
||||
|
||||
#include "pstr.h"
|
||||
/*#include "pobjt.h"*/
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
|
||||
From d35e5495bb9e7ebf00de26030fe91fe302b80700 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Sun, 14 Sep 2014 12:59:16 +0200
|
||||
Subject: Remove hardcoded -lm
|
||||
|
||||
|
||||
diff --git a/sdas/as6808/Makefile.in b/sdas/as6808/Makefile.in
|
||||
index 04cf34f..dfac987 100644
|
||||
--- a/sdas/as6808/Makefile.in
|
||||
+++ b/sdas/as6808/Makefile.in
|
||||
@@ -37,7 +37,7 @@ VPATH = @srcdir@
|
||||
CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/util
|
||||
CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS)
|
||||
LDFLAGS = @LDFLAGS@
|
||||
-LIBS = -lm
|
||||
+LIBS =
|
||||
|
||||
OBJDIR = obj
|
||||
|
||||
diff --git a/sdas/as8051/Makefile.in b/sdas/as8051/Makefile.in
|
||||
index e2d092a..3d92634 100644
|
||||
--- a/sdas/as8051/Makefile.in
|
||||
+++ b/sdas/as8051/Makefile.in
|
||||
@@ -37,7 +37,7 @@ VPATH = @srcdir@
|
||||
CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/util
|
||||
CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS)
|
||||
LDFLAGS = @LDFLAGS@
|
||||
-LIBS = -lm
|
||||
+LIBS =
|
||||
|
||||
OBJDIR = obj
|
||||
|
||||
diff --git a/sdas/as8xcxxx/Makefile.in b/sdas/as8xcxxx/Makefile.in
|
||||
index 9ba2572..7e6f9ce 100644
|
||||
--- a/sdas/as8xcxxx/Makefile.in
|
||||
+++ b/sdas/as8xcxxx/Makefile.in
|
||||
@@ -37,7 +37,7 @@ VPATH = @srcdir@
|
||||
CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/util
|
||||
CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS)
|
||||
LDFLAGS = @LDFLAGS@
|
||||
-LIBS = -lm
|
||||
+LIBS =
|
||||
|
||||
OBJDIR = obj
|
||||
|
||||
diff --git a/sdas/asgb/Makefile.in b/sdas/asgb/Makefile.in
|
||||
index e15d878..af34749 100644
|
||||
--- a/sdas/asgb/Makefile.in
|
||||
+++ b/sdas/asgb/Makefile.in
|
||||
@@ -37,7 +37,7 @@ VPATH = @srcdir@
|
||||
CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/util
|
||||
CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS)
|
||||
LDFLAGS = @LDFLAGS@
|
||||
-LIBS = -lm
|
||||
+LIBS =
|
||||
|
||||
OBJDIR = obj
|
||||
|
||||
diff --git a/sdas/asrab/Makefile.in b/sdas/asrab/Makefile.in
|
||||
index 2518544..10ecc85 100644
|
||||
--- a/sdas/asrab/Makefile.in
|
||||
+++ b/sdas/asrab/Makefile.in
|
||||
@@ -37,7 +37,7 @@ VPATH = @srcdir@
|
||||
CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/util
|
||||
CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS)
|
||||
LDFLAGS = @LDFLAGS@
|
||||
-LIBS = -lm
|
||||
+LIBS =
|
||||
|
||||
OBJDIR = obj
|
||||
|
||||
diff --git a/sdas/asstm8/Makefile.in b/sdas/asstm8/Makefile.in
|
||||
index ef2accb..06b0c48 100755
|
||||
--- a/sdas/asstm8/Makefile.in
|
||||
+++ b/sdas/asstm8/Makefile.in
|
||||
@@ -37,7 +37,7 @@ VPATH = @srcdir@
|
||||
CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/util
|
||||
CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS)
|
||||
LDFLAGS = @LDFLAGS@
|
||||
-LIBS = -lm
|
||||
+LIBS =
|
||||
|
||||
OBJDIR = obj
|
||||
|
||||
diff --git a/sdas/astlcs90/Makefile.in b/sdas/astlcs90/Makefile.in
|
||||
index 8c299c4..dba0454 100644
|
||||
--- a/sdas/astlcs90/Makefile.in
|
||||
+++ b/sdas/astlcs90/Makefile.in
|
||||
@@ -37,7 +37,7 @@ VPATH = @srcdir@
|
||||
CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/util
|
||||
CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS)
|
||||
LDFLAGS = @LDFLAGS@
|
||||
-LIBS = -lm
|
||||
+LIBS =
|
||||
|
||||
OBJDIR = obj
|
||||
|
||||
diff --git a/sdas/asz80/Makefile.in b/sdas/asz80/Makefile.in
|
||||
index 5de4cc8..f4bf6d2 100644
|
||||
--- a/sdas/asz80/Makefile.in
|
||||
+++ b/sdas/asz80/Makefile.in
|
||||
@@ -37,7 +37,7 @@ VPATH = @srcdir@
|
||||
CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/util
|
||||
CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS)
|
||||
LDFLAGS = @LDFLAGS@
|
||||
-LIBS = -lm
|
||||
+LIBS =
|
||||
|
||||
OBJDIR = obj
|
||||
|
||||
diff --git a/src/Makefile.in b/src/Makefile.in
|
||||
index 5f18ab6..782f5be 100644
|
||||
--- a/src/Makefile.in
|
||||
+++ b/src/Makefile.in
|
||||
@@ -15,7 +15,7 @@ PORTS = $(shell cat ../ports.build)
|
||||
ALLPORTS = $(shell cat ../ports.all)
|
||||
PORT_LIBS = $(PORTS:%=%/port.a)
|
||||
|
||||
-LIBS = -lm @LIBS@
|
||||
+LIBS = @LIBS@
|
||||
|
||||
CFLAGS = @CFLAGS@ @WALL_FLAG@
|
||||
CXXFLAGS = @CXXFLAGS@ @WALL_FLAG@
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
Reference in New Issue
Block a user