diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-01 19:24:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-01 19:24:10 +0100 |
commit | b052fbf151106a4f47cac7fdf0ffff983decb773 (patch) | |
tree | 5d21279a4eeaf4076caee87654b610a0fe8a4051 /app-editors/hyx/files | |
parent | c3b55a6be7da027d97d8aef00ef88c3011121a42 (diff) |
gentoo auto-resync : 01:09:2022 - 19:24:10
Diffstat (limited to 'app-editors/hyx/files')
-rw-r--r-- | app-editors/hyx/files/hyx-ldflags.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app-editors/hyx/files/hyx-ldflags.patch b/app-editors/hyx/files/hyx-ldflags.patch new file mode 100644 index 000000000000..714e76a795db --- /dev/null +++ b/app-editors/hyx/files/hyx-ldflags.patch @@ -0,0 +1,27 @@ +diff -Naur hyx-2021.06.09.org/Makefile hyx-2021.06.09/Makefile +--- hyx-2021.06.09.org/Makefile 2021-06-09 18:09:18.000000000 +0200 ++++ hyx-2021.06.09/Makefile 2022-08-31 08:20:27.711819466 +0200 +@@ -1,18 +1,19 @@ + + all: CFLAGS ?= -O2 -Wl,-s \ +- -Wl,-z,relro,-z,now -fpic -pie -D_FORTIFY_SOURCE=2 -fstack-protector-all +-all: CFLAGS += -std=c99 -pedantic -Wall -Wextra -DNDEBUG ++ -std=c99 -pedantic -Wall -Wextra -DNDEBUG ++all: LDFLAGS ?= -Wl,-z,relro,-z,now -fpic -pie -D_FORTIFY_SOURCE=2 -fstack-protector-all + all: hyx + + debug: CFLAGS ?= -O0 -g \ + -fsanitize=undefined \ +- -Wl,-z,relro,-z,now -fpic -pie -fstack-protector-all +-debug: CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror ++ -std=c99 -pedantic -Wall -Wextra -Werror ++debug: LDFLAGS ?= -Wl,-z,relro,-z,now -fpic -pie -fstack-protector-all + debug: hyx + + hyx: *.h *.c + $(CC) \ + $(CFLAGS) \ ++ $(LDFLAGS) \ + hyx.c common.c blob.c history.c view.c input.c \ + -o hyx + |