]> TLD Linux GIT Repositories - packages/rpm.git/blobdiff - rpm-macros-ti.patch
- merge cflags and ldflags macros from PLD Th
[packages/rpm.git] / rpm-macros-ti.patch
index cb94949fe4a38a7a27cfe6219d041cec4683423f..dbe7d01ce4eb4538cc0f3444c4b650437197c729 100644 (file)
@@ -29,12 +29,13 @@ diff -urN rpm-4.5/macros.in rpm-4.5.new//macros.in
  
  #------------------------------------------------------------------------
  # executable(...) configuration.
-@@ -1482,6 +1485,8 @@
+@@ -1482,6 +1485,9 @@
  # -feliminate-dwarf2-dups disabled until PR ld/3290 is fixed.
  
  %debugcflags  -O0 -g -Wall
-+%optldflags   -Wl,--as-needed
-+%optcppflags  %{nil}
++%debugcppflags        %{nil}
++%optldflags   -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc
++%optcppflags  -D_FORTIFY_SOURCE=2
  
  # Warning: those macros are overwritten by macros.build,
  #          left here for compatibility