no-insert-timestamp.patch 1.4 KB

12345678910111213141516171819202122232425262728
  1. diff -ur nsis-3.03-src/SCons/Config/gnu nsis-3.03-src.n/SCons/Config/gnu
  2. --- nsis-3.03-src/SCons/Config/gnu 2017-10-06 15:30:20.000000000 -0400
  3. +++ nsis-3.03-src.n/SCons/Config/gnu 2018-06-17 13:26:05.945495151 -0400
  4. @@ -102,6 +102,7 @@
  5. stub_env.Append(LINKFLAGS = ['$NODEFLIBS_FLAG']) # no standard libraries
  6. stub_env.Append(LINKFLAGS = ['$ALIGN_FLAG']) # 512 bytes align
  7. stub_env.Append(LINKFLAGS = ['$MAP_FLAG']) # generate map file
  8. +stub_env.Append(LINKFLAGS = ['-Wl,--no-insert-timestamp']) # remove timestamps for reproducible builds
  9. stub_uenv = stub_env.Clone()
  10. stub_uenv.Append(CPPDEFINES = ['_UNICODE', 'UNICODE'])
  11. @@ -142,6 +143,7 @@
  12. plugin_env.Append(LINKFLAGS = ['$MAP_FLAG']) # generate map file
  13. plugin_env.Append(LINKFLAGS = ['-static-libgcc']) # remove libgcc*.dll dependency
  14. plugin_env.Append(LINKFLAGS = ['-static-libstdc++']) # remove libstdc++*.dll dependency
  15. +plugin_env.Append(LINKFLAGS = ['-Wl,--no-insert-timestamp']) # remove timestamps for reproducible builds
  16. plugin_uenv = plugin_env.Clone()
  17. plugin_uenv.Append(CPPDEFINES = ['_UNICODE', 'UNICODE'])
  18. @@ -181,6 +183,7 @@
  19. util_env.Append(LINKFLAGS = ['-mwindows']) # build windows executables
  20. util_env.Append(LINKFLAGS = ['$ALIGN_FLAG']) # 512 bytes align
  21. +util_env.Append(LINKFLAGS = ['-Wl,--no-insert-timestamp']) # remove timestamps for reproducible builds
  22. conf = FlagsConfigure(util_env)