void-packages/srcpkgs/libnvidia-container/patches/fix_rpc_flags.patch

13 lines
752 B
Diff

--- a/Makefile 2021-11-23 10:58:59.234599602 -0800
+++ b/Makefile 2021-11-23 11:00:02.476171671 -0800
@@ -126,7 +126,8 @@
-Wall -Wextra -Wcast-align -Wpointer-arith -Wmissing-prototypes -Wnonnull \
-Wwrite-strings -Wlogical-op -Wformat=2 -Wmissing-format-attribute -Winit-self -Wshadow \
-Wstrict-prototypes -Wunreachable-code -Wconversion -Wsign-conversion \
- -Wno-unknown-warning-option -Wno-format-extra-args -Wno-gnu-alignof-expression $(CFLAGS)
+ -Wno-unknown-warning-option -Wno-format-extra-args -Wno-gnu-alignof-expression \
+ -I/usr/include/tirpc -ltirpc $(CFLAGS)
LDFLAGS := -Wl,-zrelro -Wl,-znow -Wl,-zdefs -Wl,--gc-sections $(LDFLAGS)
LDLIBS := $(LDLIBS)