generic-poky/meta/recipes-devtools/gcc/gcc-4.3.3/fortran-static-linking.patch
Richard Purdie 29d6678fd5 Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things
and is generally overwhelming. This commit splits it into several
logical sections roughly based on function, recipes.txt gives more
information about the classifications used.

The opportunity is also used to switch from "packages" to "recipes"
as used in OpenEmbedded as the term "packages" can be confusing to
people and has many different meanings.

Not all recipes have been classified yet, this is just a first pass
at separating things out. Some packages are moved to meta-extras as
they're no longer actively used or maintained.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-27 15:29:45 +01:00

49 lines
1.6 KiB
Diff

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