Skip to content

Commit

Permalink
(PA-6383) record gcc switches for object comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tw1r3 committed Apr 24, 2024
1 parent f778819 commit 43335ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configs/projects/_shared-compiler-settings.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Define default CFLAGS and LDFLAGS for most platforms, and then
# tweak or adjust them as needed.
proj.setting(:cppflags, "-I#{proj.includedir} -I/opt/pl-build-tools/include")
proj.setting(:cflags, "#{proj.cppflags}")
proj.setting(:cflags, "-frecord-gcc-switches #{proj.cppflags}")
proj.setting(:ldflags, "-L#{proj.libdir} -L/opt/pl-build-tools/lib -Wl,-rpath=#{proj.libdir}")

# Platform specific overrides or settings, which may override the defaults
Expand All @@ -18,6 +18,6 @@
platform.is_fedora?
)
proj.setting(:cppflags, "-I#{proj.includedir} -D_FORTIFY_SOURCE=2")
proj.setting(:cflags, '-fstack-protector-strong -fno-plt -O2')
proj.setting(:cflags, '-frecord-gcc-switches -fstack-protector-strong -fno-plt -O2')
proj.setting(:ldflags, "-L#{proj.libdir} -Wl,-rpath=#{proj.libdir},-z,relro,-z,now")
end

0 comments on commit 43335ba

Please sign in to comment.