Created attachment 197266 [details] patch CMakeLists.txt adds -Oz to CFLAGS. This breaks compilation with base GCC and potentially overwrites -O2 (default for ports). This patch fixes it. Tested on powerpc64 and amd64.
Confirming this does eliminate the 0z flag and builds with -O2 flags
Looks very good, thank you! Should be able to test that in the next few days.
A commit references this bug: Author: linimon Date: Sun Oct 28 13:50:41 UTC 2018 New revision: 483294 URL: https://svnweb.freebsd.org/changeset/ports/483294 Log: Honor CFLAGS. PR: 231506 Submitted by: Piotr Kubaj Approved by: maintainer Changes: head/audio/wmmp/files/ head/audio/wmmp/files/patch-CMakeLists.txt