diff options
author | Daniel Engberg <diizzy@FreeBSD.org> | 2021-09-12 08:35:45 +0000 |
---|---|---|
committer | Daniel Engberg <diizzy@FreeBSD.org> | 2021-09-12 08:35:49 +0000 |
commit | f9801478002375acca3401fc401de7c629051d9b (patch) | |
tree | ab75e3310d5b45bc97cf20b507f265922badc400 /audio | |
parent | fb6ad88501bf6d3d8ff5f768a4f2e35182e8e44c (diff) | |
download | ports-f9801478002375acca3401fc401de7c629051d9b.tar.gz ports-f9801478002375acca3401fc401de7c629051d9b.zip |
audio/tagutil: Adjust hardcoded compiler flags
Remove hardcoded generic optimization
Remove compiler flags -o aslr and -fsanitize=undefined to fix build on
other platforms than x86
PR: 258351
Reported by: pkg-fallout
Reviewed by: Alexandre Perrin (maintainer)
Approved by: tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D31912
Diffstat (limited to 'audio')
-rw-r--r-- | audio/tagutil/files/patch-src_CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/tagutil/files/patch-src_CMakeLists.txt b/audio/tagutil/files/patch-src_CMakeLists.txt new file mode 100644 index 000000000000..1b7169281a47 --- /dev/null +++ b/audio/tagutil/files/patch-src_CMakeLists.txt @@ -0,0 +1,15 @@ +--- src/CMakeLists.txt.orig 2019-12-23 16:19:17 UTC ++++ src/CMakeLists.txt +@@ -31,10 +31,10 @@ include_directories( + + # CFLAGS + add_compile_options(-std=c11 -Wall -Wextra) +-add_compile_options(-fstack-protector-strong -o aslr -fpie) ++add_compile_options(-fstack-protector-strong -fpie) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie") + # Per build type flags. +-set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -O0 -g -fsanitize=undefined") ++set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS}") + # CMAKE_BUILD_TYPE=GRIM: *very* strict compiler options + set(CMAKE_C_FLAGS_GRIM "${CMAKE_C_FLAGS_DEBUG} -Wextra -pedantic -Wconversion -Wstrict-prototypes -Wcast-qual -Wcast-align -Wshadow -Wredundant-decls -Wundef -Wfloat-equal -Wmissing-include-dirs -Wswitch-default -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wold-style-definition -Wformat=2 -Winit-self -Wwrite-strings -Wmissing-prototypes") + include(CheckCCompilerFlag) |