git: f98014780023 - main - audio/tagutil: Adjust hardcoded compiler flags

Daniel Engberg diizzy at FreeBSD.org
Sun Sep 12 08:38:00 UTC 2021


The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f9801478002375acca3401fc401de7c629051d9b

commit f9801478002375acca3401fc401de7c629051d9b
Author:     Daniel Engberg <diizzy at FreeBSD.org>
AuthorDate: 2021-09-12 08:35:45 +0000
Commit:     Daniel Engberg <diizzy at FreeBSD.org>
CommitDate: 2021-09-12 08:35:49 +0000

    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
---
 audio/tagutil/files/patch-src_CMakeLists.txt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

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)


More information about the dev-commits-ports-main mailing list