mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 17:06:32 -04:00
- Pet port{clippy,fmt,lint} hints - Add DEBUG option to Port - GENie releases come with pre-rolled assets used for project generation, this means GNU makefiles configured to build GENie, and created for User projects, include hard coded architecture information, including compiler platform options (-m64). Remove hard coded information, as well as any -O optimisation that are fouling with the Ports framework. Patch the GENie sources to produce sanitised output fit for consumers of the Port, and use the assets produced from the build to create the needed patches in files/ PR: 274947
24 lines
671 B
Lua
24 lines
671 B
Lua
--- src/tools/gcc.lua.orig 2023-11-11 05:52:50 UTC
|
|
+++ src/tools/gcc.lua
|
|
@@ -12,9 +12,9 @@ --
|
|
-- Set default tools
|
|
--
|
|
|
|
- premake.gcc.cc = "gcc"
|
|
- premake.gcc.cxx = "g++"
|
|
- premake.gcc.ar = "ar"
|
|
+ premake.gcc.cc = _OPTIONS["CC"]
|
|
+ premake.gcc.cxx = _OPTIONS["CXX"]
|
|
+ premake.gcc.ar = _OPTIONS["AR"]
|
|
premake.gcc.rc = "windres"
|
|
premake.gcc.llvm = false
|
|
|
|
@@ -35,7 +35,7 @@ --
|
|
FloatFast = "-ffast-math",
|
|
FloatStrict = "-ffloat-store",
|
|
NoFramePointer = "-fomit-frame-pointer",
|
|
- Optimize = "-O2",
|
|
+ Optimize = "",
|
|
OptimizeSize = "-Os",
|
|
OptimizeSpeed = "-O3",
|
|
Symbols = "-g",
|