games-action/blackvoxel:-Werror=strict-aliasing & makeopts patch fix

Closes: https://bugs.gentoo.org/862780
Signed-off-by: Abdelrahman Sarhan <abdulrahmanayman1@gmail.com>
This commit is contained in:
Abdelrahman Sarhan
2024-10-21 18:06:21 -04:00
parent 9511ecb61d
commit 37432fa018
3 changed files with 6 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ PATCHES=(
"${FILESDIR}"/${P}-makefile.patch
"${FILESDIR}"/${P}-makeopts.patch
"${FILESDIR}"/${P}-savedir.patch
"${FILESDIR}"/${P}-strict-aliasing.patch
"${FILESDIR}"/${P}-backported-ltofix.patch #For ver. 2.50 Remove for next ver.
)
src_compile() {

View File

@@ -1,14 +1,15 @@
--- a/Makefile
+++ b/Makefile
@@ -64,7 +64,9 @@
--- a/Makefile 2024-10-21 17:33:29.782931946 -0400
+++ b/Makefile 2024-10-21 17:35:55.202026636 -0400
@@ -64,8 +64,10 @@
KERNELNAME =$(shell uname -s)
ifeq ($(KERNELNAME),Linux)
- CXXFLAGS+= -O3 -c -fmessage-length=0
- LDFLAGS+=-L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
+ UCXXFLAGS:= $(shell emerge --info | grep -w CXXFLAGS=".*" | cut -d '"' -f2)
+ CXXFLAGS+= $(UCXXFLAGS) -c -fmessage-length=0
+ ULDFLAGS:= $(shell emerge --info | grep -w LDFLAGS=".*" | cut -d '"' -f2)
+ LDFLAGS+= $(ULDFLAGS) -L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
- LDFLAGS+=-L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
else ifeq ($(KERNELNAME), FreeBSD)
# To be done...
CXXFLAGS+= -O3 -c -fmessage-length=0