/sci-libs/openfoam-kernel/files/openfoam-kernel-1.5_p20090311-gcc45.patch

https://github.com/mikehale/portage · Patch · 132 lines · 115 code · 17 blank · 0 comment · 0 complexity · c36534e69c20968d2cadbbe6c08771d3 MD5 · raw file

  1. diff -ur OpenFOAM-1.5.orig/wmake/MakefileFiles OpenFOAM-1.5/wmake/MakefileFiles
  2. --- OpenFOAM-1.5.orig/wmake/MakefileFiles 2008-06-27 14:19:31.000000000 +0300
  3. +++ OpenFOAM-1.5/wmake/MakefileFiles 2010-07-02 00:07:07.000000000 +0300
  4. @@ -58,7 +58,7 @@
  5. allFiles : $(FILES) $(SFILES) $(OFILES) $(DFILES) $(IFILES)
  6. $(FILES) : files
  7. - @$(CPP) $(GFLAGS) $(FFLAGS) files > $(FILES)
  8. + @$(CPP) -P $(GFLAGS) $(FFLAGS) files > $(FILES)
  9. $(SFILES): files
  10. @wmakeDerivedFiles
  11. diff -ur OpenFOAM-1.5.orig/wmake/MakefileOptions OpenFOAM-1.5/wmake/MakefileOptions
  12. --- OpenFOAM-1.5.orig/wmake/MakefileOptions 2010-07-02 00:12:07.000000000 +0300
  13. +++ OpenFOAM-1.5/wmake/MakefileOptions 2010-07-02 00:05:52.000000000 +0300
  14. @@ -48,7 +48,7 @@
  15. #------------------------------------------------------------------------------
  16. $(OPTIONS) : options
  17. - @wmkdir $(WM_OPTIONS) ; $(CPP) $(GFLAGS) options > $(OPTIONS)
  18. + @wmkdir $(WM_OPTIONS) ; $(CPP) -P $(GFLAGS) options > $(OPTIONS)
  19. #------------------------------------------------------------------------------
  20. diff -ur OpenFOAM-1.5.orig/wmake/rules/linux64Gcc/general OpenFOAM-1.5/wmake/rules/linux64Gcc/general
  21. --- OpenFOAM-1.5.orig/wmake/rules/linux64Gcc/general 2008-05-01 17:16:40.000000000 +0300
  22. +++ OpenFOAM-1.5/wmake/rules/linux64Gcc/general 2010-07-02 00:07:27.000000000 +0300
  23. @@ -1,4 +1,4 @@
  24. -CPP = /lib/cpp $(GFLAGS)
  25. +CPP = /lib/cpp -P $(GFLAGS)
  26. LD = ld -A64
  27. PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
  28. diff -ur OpenFOAM-1.5.orig/wmake/rules/linux64Gcc42/general OpenFOAM-1.5/wmake/rules/linux64Gcc42/general
  29. --- OpenFOAM-1.5.orig/wmake/rules/linux64Gcc42/general 2008-05-25 22:46:24.000000000 +0300
  30. +++ OpenFOAM-1.5/wmake/rules/linux64Gcc42/general 2010-07-02 00:08:59.000000000 +0300
  31. @@ -1,4 +1,4 @@
  32. -CPP = /lib/cpp $(GFLAGS)
  33. +CPP = /lib/cpp -P $(GFLAGS)
  34. LD = ld -A64
  35. PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
  36. diff -ur OpenFOAM-1.5.orig/wmake/rules/linux64Icc/general OpenFOAM-1.5/wmake/rules/linux64Icc/general
  37. --- OpenFOAM-1.5.orig/wmake/rules/linux64Icc/general 2008-05-01 17:16:40.000000000 +0300
  38. +++ OpenFOAM-1.5/wmake/rules/linux64Icc/general 2010-07-02 00:10:09.000000000 +0300
  39. @@ -1,4 +1,4 @@
  40. -CPP = /lib/cpp $(GFLAGS)
  41. +CPP = /lib/cpp -P $(GFLAGS)
  42. LD = ld
  43. PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
  44. diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxGcc/general OpenFOAM-1.5/wmake/rules/linuxGcc/general
  45. --- OpenFOAM-1.5.orig/wmake/rules/linuxGcc/general 2008-05-01 17:16:40.000000000 +0300
  46. +++ OpenFOAM-1.5/wmake/rules/linuxGcc/general 2010-07-02 00:08:30.000000000 +0300
  47. @@ -1,4 +1,4 @@
  48. -CPP = /lib/cpp $(GFLAGS)
  49. +CPP = /lib/cpp -P $(GFLAGS)
  50. LD = ld -melf_i386
  51. PROJECT_LIBS = -l$(WM_PROJECT) -ldl
  52. diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxGcc42/general OpenFOAM-1.5/wmake/rules/linuxGcc42/general
  53. --- OpenFOAM-1.5.orig/wmake/rules/linuxGcc42/general 2008-05-30 14:26:58.000000000 +0300
  54. +++ OpenFOAM-1.5/wmake/rules/linuxGcc42/general 2010-07-02 00:09:55.000000000 +0300
  55. @@ -1,4 +1,4 @@
  56. -CPP = /lib/cpp $(GFLAGS)
  57. +CPP = /lib/cpp -P $(GFLAGS)
  58. LD = ld -melf_i386
  59. PROJECT_LIBS = -l$(WM_PROJECT) -ldl
  60. diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxIA64Gcc/general OpenFOAM-1.5/wmake/rules/linuxIA64Gcc/general
  61. --- OpenFOAM-1.5.orig/wmake/rules/linuxIA64Gcc/general 2008-05-01 17:16:40.000000000 +0300
  62. +++ OpenFOAM-1.5/wmake/rules/linuxIA64Gcc/general 2010-07-02 00:07:43.000000000 +0300
  63. @@ -1,4 +1,4 @@
  64. -CPP = /lib/cpp $(GFLAGS)
  65. +CPP = /lib/cpp -P $(GFLAGS)
  66. LD = ld
  67. PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
  68. diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxIA64Icc/general OpenFOAM-1.5/wmake/rules/linuxIA64Icc/general
  69. --- OpenFOAM-1.5.orig/wmake/rules/linuxIA64Icc/general 2008-05-01 17:16:40.000000000 +0300
  70. +++ OpenFOAM-1.5/wmake/rules/linuxIA64Icc/general 2010-07-02 00:06:11.000000000 +0300
  71. @@ -1,4 +1,4 @@
  72. -CPP = /lib/cpp $(GFLAGS) -DICC_IA64_PREFETCH
  73. +CPP = /lib/cpp -P $(GFLAGS) -DICC_IA64_PREFETCH
  74. AR = ar
  75. ARFLAGS = cr
  76. RANLIB = ranlib
  77. diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxIcc/general OpenFOAM-1.5/wmake/rules/linuxIcc/general
  78. --- OpenFOAM-1.5.orig/wmake/rules/linuxIcc/general 2008-05-01 17:16:40.000000000 +0300
  79. +++ OpenFOAM-1.5/wmake/rules/linuxIcc/general 2010-07-02 00:08:18.000000000 +0300
  80. @@ -1,4 +1,4 @@
  81. -CPP = /lib/cpp $(GFLAGS)
  82. +CPP = /lib/cpp -P $(GFLAGS)
  83. LD = ld -melf_i386
  84. PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
  85. diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxmingw32/general OpenFOAM-1.5/wmake/rules/linuxmingw32/general
  86. --- OpenFOAM-1.5.orig/wmake/rules/linuxmingw32/general 2008-05-01 17:16:40.000000000 +0300
  87. +++ OpenFOAM-1.5/wmake/rules/linuxmingw32/general 2010-07-02 00:08:45.000000000 +0300
  88. @@ -1,4 +1,4 @@
  89. -CPP = /lib/cpp $(GFLAGS)
  90. +CPP = /lib/cpp -P $(GFLAGS)
  91. LD = mingw32-ld
  92. PROJECT_LIBS = -l$(WM_PROJECT)
  93. diff -ur OpenFOAM-1.5.orig/wmake/rules/SiCortex64Gcc/general OpenFOAM-1.5/wmake/rules/SiCortex64Gcc/general
  94. --- OpenFOAM-1.5.orig/wmake/rules/SiCortex64Gcc/general 2010-07-02 00:12:08.000000000 +0300
  95. +++ OpenFOAM-1.5/wmake/rules/SiCortex64Gcc/general 2010-07-02 00:06:28.000000000 +0300
  96. @@ -1,4 +1,4 @@
  97. -CPP = /lib/cpp $(GFLAGS)
  98. +CPP = /lib/cpp -P $(GFLAGS)
  99. LD = ld -A64
  100. PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
  101. diff -ur OpenFOAM-1.5.orig/wmake/rules/solarisGcc/general OpenFOAM-1.5/wmake/rules/solarisGcc/general
  102. --- OpenFOAM-1.5.orig/wmake/rules/solarisGcc/general 2008-05-01 17:16:40.000000000 +0300
  103. +++ OpenFOAM-1.5/wmake/rules/solarisGcc/general 2010-07-02 00:10:28.000000000 +0300
  104. @@ -1,4 +1,4 @@
  105. -CPP = /usr/lib/cpp -undef $(GFLAGS)
  106. +CPP = /usr/lib/cpp -P -undef $(GFLAGS)
  107. PROJECT_LIBS = -l$(WM_PROJECT) -liberty -lnsl -lsocket -L$(FOAM_LIBBIN)/dummy -lPstream
  108. diff -ur OpenFOAM-1.5.orig/wmake/rules/SunOS64Gcc/general OpenFOAM-1.5/wmake/rules/SunOS64Gcc/general
  109. --- OpenFOAM-1.5.orig/wmake/rules/SunOS64Gcc/general 2010-07-02 00:12:08.000000000 +0300
  110. +++ OpenFOAM-1.5/wmake/rules/SunOS64Gcc/general 2010-07-02 00:08:00.000000000 +0300
  111. @@ -1,4 +1,4 @@
  112. -CPP = /lib/cpp $(GFLAGS)
  113. +CPP = /lib/cpp -P $(GFLAGS)
  114. LD = ld -64
  115. PROJECT_LIBS = -l$(WM_PROJECT) -liberty -lnsl -lsocket -L$(FOAM_LIBBIN)/dummy -lPstream