]> git.wh0rd.org Git - patches.git/blob - libtool-blackfin-linux.patch
initial import
[patches.git] / libtool-blackfin-linux.patch
1 Index: libltdl/m4/libtool.m4
2 ===================================================================
3 RCS file: /cvsroot/libtool/libtool/libltdl/m4/libtool.m4,v
4 retrieving revision 1.86
5 diff -u -p -r1.86 libtool.m4
6 --- libltdl/m4/libtool.m4       19 Oct 2006 05:06:14 -0000      1.86
7 +++ libltdl/m4/libtool.m4       12 Jan 2007 22:42:08 -0000
8 @@ -2301,7 +2301,7 @@ linux*oldld* | linux*aout* | linux*coff*
9    ;;
10  
11  # This must be Linux ELF.
12 -linux* | k*bsd*-gnu)
13 +linux* | uclinux* | k*bsd*-gnu)
14    version_type=linux
15    need_lib_prefix=no
16    need_version=no
17 @@ -2914,7 +2914,7 @@ irix5* | irix6* | nonstopux*)
18    ;;
19  
20  # This must be Linux ELF.
21 -linux* | k*bsd*-gnu)
22 +linux* | uclinux* | k*bsd*-gnu)
23    lt_cv_deplibs_check_method=pass_all
24    ;;
25  
26 @@ -3444,6 +3444,18 @@ m4_if([$1], [CXX], [
27        # it will coredump.
28        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
29        ;;
30 +    linux*)
31 +      # Handle ports that support FDPIC ELF instead of plain ELF
32 +      case $host_cpu in
33 +       bfin)
34 +         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-mfdpic'
35 +         CFLAGS="$CFLAGS -mfdpic"
36 +         ;;
37 +       *)
38 +         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
39 +         ;;
40 +      esac
41 +      ;;
42      *)
43        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
44        ;;
45 @@ -3750,6 +3762,18 @@ m4_if([$1], [CXX], [
46        fi
47        ;;
48  
49 +    linux*)
50 +      # Handle ports that support FDPIC ELF instead of plain ELF
51 +      case $host_cpu in
52 +       bfin)
53 +         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-mfdpic'
54 +         CFLAGS="$CFLAGS -mfdpic"
55 +         ;;
56 +       *)
57 +         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
58 +         ;;
59 +      esac
60 +      ;;
61      *)
62        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
63        ;;