1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Add forgotten patches, fixing build

PR:		202544
Submitted by:	pkubaj@riseup.net
This commit is contained in:
Dmitry Marakasov 2015-09-03 14:25:21 +00:00
parent 6b4de26986
commit be4893b43e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395961
3 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,21 @@
--- Makefile.common.orig 2015-07-08 03:34:34 UTC
+++ Makefile.common
@@ -258,7 +258,6 @@ ifndef LTO
endif
endif
-COMMONFLAGS=$(ARCH)
COMPILERFLAGS=
ifeq ($(PACKAGE_REPOSITORY),0)
@@ -278,8 +277,8 @@ ifneq ($(RELEASE)$(DEBUGANYWAY),10)
OPTIMIZATIONS += $(DEBUGFLAG)
endif
-CONLYFLAGS=-std=gnu99 -Wimplicit -Werror-implicit-function-declaration
-CPPONLYFLAGS= -fno-exceptions -fno-rtti -Wno-write-strings
+CONLYFLAGS=-std=gnu99 -Wimplicit
+CPPONLYFLAGS= -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings
ASFORMAT=elf$(SYSBITS)
ASFLAGS=-s -f $(ASFORMAT) #-g
LINKERFLAGS=

View File

@ -0,0 +1,11 @@
--- build/src/baselayer.c.orig 2015-07-25 17:23:17 UTC
+++ build/src/baselayer.c
@@ -219,7 +219,7 @@ void calc_ylookup(int32_t bpl, int32_t l
{
Baligned_free(ylookup);
- ylookup = (intptr_t *)Xaligned_alloc(16, lastyidx * sizeof(intptr_t));
+ posix_memalign(&ylookup, 16, lastyidx * sizeof(intptr_t));
#if !defined(NOASM) && !defined(GEKKO) && !defined(__ANDROID__)
nx_unprotect((intptr_t)ylookup, (intptr_t)ylookup + (lastyidx * sizeof(intptr_t)));
#endif

View File

@ -0,0 +1,30 @@
--- build/src/engine.c.orig 2015-08-02 08:40:39 UTC
+++ build/src/engine.c
@@ -5349,7 +5349,8 @@ static void drawalls(int32_t bunch)
static char fn[32], tmpbuf[80];
char purple = getclosestcol(63, 0, 63);
char yellow = getclosestcol(63, 63, 0);
- char *bakframe = (char *)Xaligned_alloc(16, xdim*ydim);
+ char *bakframe;
+ posix_memalign(&bakframe, 16, xdim*ydim);
begindrawing(); //{{{
Bmemcpy(bakframe, (char *)frameplace, xdim*ydim);
@@ -8142,7 +8143,7 @@ static void dosetaspect(void)
if (xdimen != oxdimen && voxoff[0][0])
{
if (distrecip == NULL)
- distrecip = (uint32_t *)Xaligned_alloc(16, DISTRECIPSIZ * sizeof(uint32_t));
+ posix_memalign(&distrecip, 16, DISTRECIPSIZ * sizeof(uint32_t));
if (xdimen < 1 << 11)
{
@@ -11654,7 +11655,7 @@ static void initsmost(void)
if (*dynarray[i].ptr)
Baligned_free(*dynarray[i].ptr);
- *dynarray[i].ptr = Xaligned_alloc(16, dynarray[i].size);
+ posix_memalign(dynarray[i].ptr, 16, dynarray[i].size);
}
ysavecnt = YSAVES;