diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /app-laptop/msi-keyboard/files | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'app-laptop/msi-keyboard/files')
-rw-r--r-- | app-laptop/msi-keyboard/files/msi-keyboard-1.0-gcc12.patch | 9 | ||||
-rw-r--r-- | app-laptop/msi-keyboard/files/msi-keyboard-1.0-r1-makefile.patch | 24 |
2 files changed, 33 insertions, 0 deletions
diff --git a/app-laptop/msi-keyboard/files/msi-keyboard-1.0-gcc12.patch b/app-laptop/msi-keyboard/files/msi-keyboard-1.0-gcc12.patch new file mode 100644 index 000000000000..a1d9e3f1151c --- /dev/null +++ b/app-laptop/msi-keyboard/files/msi-keyboard-1.0-gcc12.patch @@ -0,0 +1,9 @@ +https://bugs.gentoo.org/840329 +--- a/main.cpp ++++ b/main.cpp +@@ -1,4 +1,5 @@ + #include "Keyboard.h" ++#include <cstring> + #include <regex> + #include <iostream> + diff --git a/app-laptop/msi-keyboard/files/msi-keyboard-1.0-r1-makefile.patch b/app-laptop/msi-keyboard/files/msi-keyboard-1.0-r1-makefile.patch new file mode 100644 index 000000000000..7588494501e9 --- /dev/null +++ b/app-laptop/msi-keyboard/files/msi-keyboard-1.0-r1-makefile.patch @@ -0,0 +1,24 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,6 +1,7 @@ +-CC=g++ +-CFLAGS=-c -Wall +-LDFLAGS=-lhidapi-libusb ++CXX?=g++ ++COMMON_FLAGS=-Wall ++CXXFLAGS+=$(COMMON_FLAGS) ++LIBS=-lhidapi-libusb + SOURCES=main.cpp Keyboard.cpp Color.cpp + OBJECTS=$(SOURCES:.cpp=.o) + EXECUTABLE=msi-keyboard +@@ -11,8 +12,8 @@ clean: + rm $(OBJECTS) $(EXECUTABLE) + + $(EXECUTABLE): $(OBJECTS) +- $(CC) $(LDFLAGS) $(OBJECTS) -o $@ ++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@ + + .cpp.o: +- $(CC) $(CFLAGS) $< -o $@ ++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@ + |