0001-PROGRAM_NOPIC-apparently-causes-problems-on-some-x86_64-systems.patch 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. From e69557bea18eb7c3069c9527cc30f7cd91be27b7 Mon Sep 17 00:00:00 2001
  2. From: sms00 <sms00@3be20b7b-d6de-45d7-9b51-1db703c412de>
  3. Date: Thu, 28 Nov 2013 22:39:41 +0000
  4. Subject: [PATCH] PROGRAM_NOPIC apparently causes problems on some x86_64
  5. systems, has little to no performance effect on x86_64 systems and even on
  6. x86 systems most programs are I/O bound anyhow. So remove the 4 uses of the
  7. flag
  8. git-svn-id: https://svn.code.sf.net/p/mjpeg/Code/trunk/mjpeg_play@3359 3be20b7b-d6de-45d7-9b51-1db703c412de
  9. [Retrieved (and backported by removing INSTALL updates) from:
  10. https://github.com/jaystevens/mjpegtools/commit/e69557bea18eb7c3069c9527cc30f7cd91be27b7]
  11. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  12. ---
  13. y4mdenoise/Makefile.am | 4 +-
  14. y4munsharp/Makefile.am | 2 +-
  15. y4mutils/Makefile.am | 2 +-
  16. yuvscaler/Makefile.am | 2 +-
  17. 5 files changed, 26 insertions(+), 94 deletions(-)
  18. diff --git a/y4mdenoise/Makefile.am b/y4mdenoise/Makefile.am
  19. index dee9064f..d7fa76e2 100644
  20. --- a/y4mdenoise/Makefile.am
  21. +++ b/y4mdenoise/Makefile.am
  22. @@ -4,8 +4,8 @@ MAINTAINERCLEANFILES = Makefile.in
  23. EXTRA_DIST = implementation.html
  24. -AM_CFLAGS = -DNDEBUG -finline-functions @PROGRAM_NOPIC@
  25. -AM_CXXFLAGS = -DNDEBUG -finline-functions @PROGRAM_NOPIC@
  26. +AM_CFLAGS = -DNDEBUG -finline-functions
  27. +AM_CXXFLAGS = -DNDEBUG -finline-functions
  28. INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/utils
  29. diff --git a/y4munsharp/Makefile.am b/y4munsharp/Makefile.am
  30. index a7f98acc..f99ff5cf 100644
  31. --- a/y4munsharp/Makefile.am
  32. +++ b/y4munsharp/Makefile.am
  33. @@ -4,7 +4,7 @@ MAINTAINERCLEANFILES = Makefile.in
  34. INCLUDES = -I $(top_srcdir)/utils -I $(top_srcdir)
  35. -y4munharp_CFLAGS=@PROGRAM_NOPIC@
  36. +y4munharp_CFLAGS=
  37. bin_PROGRAMS = y4munsharp
  38. diff --git a/y4mutils/Makefile.am b/y4mutils/Makefile.am
  39. index f3b0a671..7b8b1881 100644
  40. --- a/y4mutils/Makefile.am
  41. +++ b/y4mutils/Makefile.am
  42. @@ -2,7 +2,7 @@
  43. MAINTAINERCLEANFILES = Makefile.in
  44. -AM_CFLAGS = @PROGRAM_NOPIC@
  45. +AM_CFLAGS =
  46. AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/utils
  47. LIBMJPEGUTILS = $(top_builddir)/utils/libmjpegutils.la
  48. diff --git a/yuvscaler/Makefile.am b/yuvscaler/Makefile.am
  49. index 1fe4d757..6d2adaca 100644
  50. --- a/yuvscaler/Makefile.am
  51. +++ b/yuvscaler/Makefile.am
  52. @@ -18,6 +18,6 @@ noinst_HEADERS = \
  53. EXTRA_DIST = yuvscaler_implementation.txt
  54. -yuvscaler_CFLAGS=@PROGRAM_NOPIC@
  55. +yuvscaler_CFLAGS=
  56. yuvscaler_SOURCES = yuvscaler.c yuvscaler_resample.c yuvscaler_bicubic.c
  57. yuvscaler_LDADD = $(LIBMJPEGUTILS) $(LIBM_LIBS)