/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
- diff -ur OpenFOAM-1.5.orig/wmake/MakefileFiles OpenFOAM-1.5/wmake/MakefileFiles
- --- OpenFOAM-1.5.orig/wmake/MakefileFiles 2008-06-27 14:19:31.000000000 +0300
- +++ OpenFOAM-1.5/wmake/MakefileFiles 2010-07-02 00:07:07.000000000 +0300
- @@ -58,7 +58,7 @@
- allFiles : $(FILES) $(SFILES) $(OFILES) $(DFILES) $(IFILES)
-
- $(FILES) : files
- - @$(CPP) $(GFLAGS) $(FFLAGS) files > $(FILES)
- + @$(CPP) -P $(GFLAGS) $(FFLAGS) files > $(FILES)
-
- $(SFILES): files
- @wmakeDerivedFiles
- diff -ur OpenFOAM-1.5.orig/wmake/MakefileOptions OpenFOAM-1.5/wmake/MakefileOptions
- --- OpenFOAM-1.5.orig/wmake/MakefileOptions 2010-07-02 00:12:07.000000000 +0300
- +++ OpenFOAM-1.5/wmake/MakefileOptions 2010-07-02 00:05:52.000000000 +0300
- @@ -48,7 +48,7 @@
- #------------------------------------------------------------------------------
-
- $(OPTIONS) : options
- - @wmkdir $(WM_OPTIONS) ; $(CPP) $(GFLAGS) options > $(OPTIONS)
- + @wmkdir $(WM_OPTIONS) ; $(CPP) -P $(GFLAGS) options > $(OPTIONS)
-
-
- #------------------------------------------------------------------------------
- diff -ur OpenFOAM-1.5.orig/wmake/rules/linux64Gcc/general OpenFOAM-1.5/wmake/rules/linux64Gcc/general
- --- OpenFOAM-1.5.orig/wmake/rules/linux64Gcc/general 2008-05-01 17:16:40.000000000 +0300
- +++ OpenFOAM-1.5/wmake/rules/linux64Gcc/general 2010-07-02 00:07:27.000000000 +0300
- @@ -1,4 +1,4 @@
- -CPP = /lib/cpp $(GFLAGS)
- +CPP = /lib/cpp -P $(GFLAGS)
- LD = ld -A64
-
- PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
- diff -ur OpenFOAM-1.5.orig/wmake/rules/linux64Gcc42/general OpenFOAM-1.5/wmake/rules/linux64Gcc42/general
- --- OpenFOAM-1.5.orig/wmake/rules/linux64Gcc42/general 2008-05-25 22:46:24.000000000 +0300
- +++ OpenFOAM-1.5/wmake/rules/linux64Gcc42/general 2010-07-02 00:08:59.000000000 +0300
- @@ -1,4 +1,4 @@
- -CPP = /lib/cpp $(GFLAGS)
- +CPP = /lib/cpp -P $(GFLAGS)
- LD = ld -A64
-
- PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
- diff -ur OpenFOAM-1.5.orig/wmake/rules/linux64Icc/general OpenFOAM-1.5/wmake/rules/linux64Icc/general
- --- OpenFOAM-1.5.orig/wmake/rules/linux64Icc/general 2008-05-01 17:16:40.000000000 +0300
- +++ OpenFOAM-1.5/wmake/rules/linux64Icc/general 2010-07-02 00:10:09.000000000 +0300
- @@ -1,4 +1,4 @@
- -CPP = /lib/cpp $(GFLAGS)
- +CPP = /lib/cpp -P $(GFLAGS)
- LD = ld
-
- PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
- diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxGcc/general OpenFOAM-1.5/wmake/rules/linuxGcc/general
- --- OpenFOAM-1.5.orig/wmake/rules/linuxGcc/general 2008-05-01 17:16:40.000000000 +0300
- +++ OpenFOAM-1.5/wmake/rules/linuxGcc/general 2010-07-02 00:08:30.000000000 +0300
- @@ -1,4 +1,4 @@
- -CPP = /lib/cpp $(GFLAGS)
- +CPP = /lib/cpp -P $(GFLAGS)
- LD = ld -melf_i386
-
- PROJECT_LIBS = -l$(WM_PROJECT) -ldl
- diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxGcc42/general OpenFOAM-1.5/wmake/rules/linuxGcc42/general
- --- OpenFOAM-1.5.orig/wmake/rules/linuxGcc42/general 2008-05-30 14:26:58.000000000 +0300
- +++ OpenFOAM-1.5/wmake/rules/linuxGcc42/general 2010-07-02 00:09:55.000000000 +0300
- @@ -1,4 +1,4 @@
- -CPP = /lib/cpp $(GFLAGS)
- +CPP = /lib/cpp -P $(GFLAGS)
- LD = ld -melf_i386
-
- PROJECT_LIBS = -l$(WM_PROJECT) -ldl
- diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxIA64Gcc/general OpenFOAM-1.5/wmake/rules/linuxIA64Gcc/general
- --- OpenFOAM-1.5.orig/wmake/rules/linuxIA64Gcc/general 2008-05-01 17:16:40.000000000 +0300
- +++ OpenFOAM-1.5/wmake/rules/linuxIA64Gcc/general 2010-07-02 00:07:43.000000000 +0300
- @@ -1,4 +1,4 @@
- -CPP = /lib/cpp $(GFLAGS)
- +CPP = /lib/cpp -P $(GFLAGS)
- LD = ld
-
- PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
- diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxIA64Icc/general OpenFOAM-1.5/wmake/rules/linuxIA64Icc/general
- --- OpenFOAM-1.5.orig/wmake/rules/linuxIA64Icc/general 2008-05-01 17:16:40.000000000 +0300
- +++ OpenFOAM-1.5/wmake/rules/linuxIA64Icc/general 2010-07-02 00:06:11.000000000 +0300
- @@ -1,4 +1,4 @@
- -CPP = /lib/cpp $(GFLAGS) -DICC_IA64_PREFETCH
- +CPP = /lib/cpp -P $(GFLAGS) -DICC_IA64_PREFETCH
- AR = ar
- ARFLAGS = cr
- RANLIB = ranlib
- diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxIcc/general OpenFOAM-1.5/wmake/rules/linuxIcc/general
- --- OpenFOAM-1.5.orig/wmake/rules/linuxIcc/general 2008-05-01 17:16:40.000000000 +0300
- +++ OpenFOAM-1.5/wmake/rules/linuxIcc/general 2010-07-02 00:08:18.000000000 +0300
- @@ -1,4 +1,4 @@
- -CPP = /lib/cpp $(GFLAGS)
- +CPP = /lib/cpp -P $(GFLAGS)
- LD = ld -melf_i386
-
- PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
- diff -ur OpenFOAM-1.5.orig/wmake/rules/linuxmingw32/general OpenFOAM-1.5/wmake/rules/linuxmingw32/general
- --- OpenFOAM-1.5.orig/wmake/rules/linuxmingw32/general 2008-05-01 17:16:40.000000000 +0300
- +++ OpenFOAM-1.5/wmake/rules/linuxmingw32/general 2010-07-02 00:08:45.000000000 +0300
- @@ -1,4 +1,4 @@
- -CPP = /lib/cpp $(GFLAGS)
- +CPP = /lib/cpp -P $(GFLAGS)
- LD = mingw32-ld
-
- PROJECT_LIBS = -l$(WM_PROJECT)
- diff -ur OpenFOAM-1.5.orig/wmake/rules/SiCortex64Gcc/general OpenFOAM-1.5/wmake/rules/SiCortex64Gcc/general
- --- OpenFOAM-1.5.orig/wmake/rules/SiCortex64Gcc/general 2010-07-02 00:12:08.000000000 +0300
- +++ OpenFOAM-1.5/wmake/rules/SiCortex64Gcc/general 2010-07-02 00:06:28.000000000 +0300
- @@ -1,4 +1,4 @@
- -CPP = /lib/cpp $(GFLAGS)
- +CPP = /lib/cpp -P $(GFLAGS)
- LD = ld -A64
-
- PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
- diff -ur OpenFOAM-1.5.orig/wmake/rules/solarisGcc/general OpenFOAM-1.5/wmake/rules/solarisGcc/general
- --- OpenFOAM-1.5.orig/wmake/rules/solarisGcc/general 2008-05-01 17:16:40.000000000 +0300
- +++ OpenFOAM-1.5/wmake/rules/solarisGcc/general 2010-07-02 00:10:28.000000000 +0300
- @@ -1,4 +1,4 @@
- -CPP = /usr/lib/cpp -undef $(GFLAGS)
- +CPP = /usr/lib/cpp -P -undef $(GFLAGS)
-
- PROJECT_LIBS = -l$(WM_PROJECT) -liberty -lnsl -lsocket -L$(FOAM_LIBBIN)/dummy -lPstream
-
- diff -ur OpenFOAM-1.5.orig/wmake/rules/SunOS64Gcc/general OpenFOAM-1.5/wmake/rules/SunOS64Gcc/general
- --- OpenFOAM-1.5.orig/wmake/rules/SunOS64Gcc/general 2010-07-02 00:12:08.000000000 +0300
- +++ OpenFOAM-1.5/wmake/rules/SunOS64Gcc/general 2010-07-02 00:08:00.000000000 +0300
- @@ -1,4 +1,4 @@
- -CPP = /lib/cpp $(GFLAGS)
- +CPP = /lib/cpp -P $(GFLAGS)
- LD = ld -64
-
- PROJECT_LIBS = -l$(WM_PROJECT) -liberty -lnsl -lsocket -L$(FOAM_LIBBIN)/dummy -lPstream