summaryrefslogtreecommitdiff
path: root/recipes/gcc/gcc-4.3.2/fortran-static-linking.patch
blob: 3dd6321dc301377a57c1bf917b5cad8294dc66b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
f951 (fortran) links to MPFR and GMP of our staging area but when executing
the command the libs can not be found. Use rpath like all the other apps in
our staging bin/ directory.

Patch the configure to avoid the regeneration...

Index: gcc-4.2.2/configure
===================================================================
--- gcc-4.2.2.orig/configure	2008-01-15 23:23:41.000000000 +0100
+++ gcc-4.2.2/configure	2008-01-15 23:25:20.000000000 +0100
@@ -2278,14 +2278,14 @@
 
 
 if test "x$with_mpfr" != x; then
-  gmplibs="-L$with_mpfr/lib $gmplibs"
+  gmplibs="-static -L$with_mpfr/lib $gmplibs"
   gmpinc="-I$with_mpfr/include"
 fi
 if test "x$with_mpfr_include" != x; then
   gmpinc="-I$with_mpfr_include"
 fi
 if test "x$with_mpfr_lib" != x; then
-  gmplibs="-L$with_mpfr_lib $gmplibs"
+  gmplibs="-static -L$with_mpfr_lib $gmplibs"
 fi
 
 # Specify a location for gmp
Index: gcc-4.2.2/configure.in
===================================================================
--- gcc-4.2.2.orig/configure.in	2008-01-15 23:23:41.000000000 +0100
+++ gcc-4.2.2/configure.in	2008-01-15 23:24:36.000000000 +0100
@@ -1066,14 +1066,14 @@
 AC_ARG_WITH(mpfr_lib, [  --with-mpfr-lib=PATH    Specify the directory for the installed MPFR library])
 
 if test "x$with_mpfr" != x; then
-  gmplibs="-L$with_mpfr/lib $gmplibs"
+  gmplibs="-static -L$with_mpfr/lib $gmplibs"
   gmpinc="-I$with_mpfr/include"
 fi
 if test "x$with_mpfr_include" != x; then
   gmpinc="-I$with_mpfr_include"
 fi
 if test "x$with_mpfr_lib" != x; then
-  gmplibs="-L$with_mpfr_lib $gmplibs"
+  gmplibs="-static -L$with_mpfr_lib $gmplibs"
 fi
 
 # Specify a location for gmp