* Add CFLAGS to workaround a compiler bug with
affects SSP in some cases.
* Add patch to proper use our CFLAGS
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
name = libcap
version = 2.66
-release = 1
+release = 2
groups = System/Libraries
url = http://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2/
/bin/ping
end
+ CFLAGS += \
+ -fno-builtin-exit \
+ -D__noreturn__=
+
build
make DYNAMIC=yes LIBATTR=yes \
CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}"
--- /dev/null
+diff -Nur a/Make.Rules b/Make.Rules
+--- a/Make.Rules 2022-09-24 20:41:21.000000000 +0000
++++ b/Make.Rules 2023-03-10 16:22:35.826124239 +0000
+@@ -80,7 +80,7 @@
+ WARNINGS=-Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs \
+ -Winline -Wshadow -Wunreachable-code
+-COPTS ?= -O2
++COPTS ?= $(CFLAGS)
+ CFLAGS ?= $(COPTS) $(DEBUG)
+ CFLAGS += $(WARNINGS)
+ CPPFLAGS += -Dlinux $(DEFINES) $(LIBCAP_INCLUDES)