lib/pkgforge/components/cflags.rb in pkgforge-0.4.15 vs lib/pkgforge/components/cflags.rb in pkgforge-0.4.16
- old
+ new
@@ -41,12 +41,11 @@
format: %w(-Wformat -Wformat-security -Werror=format-security),
stackprotector: %w(-fstack-protector-strong --param ssp-buffer-size=4),
fortify: %w(-O2 -D_FORTIFY_SOURCE=2),
pic: '-fPIC',
strictoverflow: '-fno-strict-overflow',
- relro: '-z=relro',
- bindnow: '-z=bindnow',
- pie: %w(-fPIE -pie)
+ relro: '-zrelro',
+ bindnow: '-zbindnow'
}.freeze
Contract Maybe[Array[String]] => nil
def harden(list = [])
harden_opts = ALL_HARDEN_OPTS.reject { |k, _| list.include? k.to_s }