]> git.pld-linux.org Git - packages/libtool.git/blob - libtool.m4_cegcc.patch
- adapter
[packages/libtool.git] / libtool.m4_cegcc.patch
1 --- libtool-1.5.22/libtool.m4   2007-02-27 01:08:40.913016408 +0200
2 +++ libtool-1.5.22.cegcc/libtool.m4     2007-02-27 01:08:22.212594364 +0200
3 @@ -595,7 +595,7 @@ sparc*-*solaris*)
4    ;;
5  
6  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
7 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
8 +[*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-wince*-*)
9    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
10    AC_CHECK_TOOL(AS, as, false)
11    AC_CHECK_TOOL(OBJDUMP, objdump, false)
12 @@ -715,7 +715,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
13      lt_cv_sys_max_cmd_len=-1;
14      ;;
15  
16 -  cygwin* | mingw*)
17 +  cygwin* | mingw* | cegcc*)
18      # On Win9x/ME, this test blows up -- it succeeds, but takes
19      # about 5 minutes as the teststring grows exponentially.
20      # Worse, since 9x/ME are not pre-emptively multitasking,
21 @@ -922,7 +922,7 @@ else
22      lt_cv_dlopen_self=yes
23      ;;
24  
25 -  mingw* | pw32*)
26 +  mingw* | pw32* | cegcc*)
27      lt_cv_dlopen="LoadLibrary"
28      lt_cv_dlopen_libs=
29     ;;
30 @@ -1315,14 +1315,14 @@ bsdi[[45]]*)
31    # libtool to hard-code these into programs
32    ;;
33  
34 -cygwin* | mingw* | pw32*)
35 +cygwin* | mingw* | pw32* | cegcc*)
36    version_type=windows
37    shrext_cmds=".dll"
38    need_version=no
39    need_lib_prefix=no
40  
41    case $GCC,$host_os in
42 -  yes,cygwin* | yes,mingw* | yes,pw32*)
43 +  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
44      library_names_spec='$libname.dll.a'
45      # DLL is installed to $(libdir)/../bin by postinstall_cmds
46      postinstall_cmds='base_file=`basename \${file}`~
47 @@ -1342,7 +1342,7 @@ cygwin* | mingw* | pw32*)
48        soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
49        sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
50        ;;
51 -    mingw*)
52 +    mingw* | cegcc*)
53        # MinGW DLLs use traditional 'lib' prefix
54        soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
55        sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
56 @@ -2335,6 +2335,13 @@ mingw* | pw32*)
57    lt_cv_file_magic_cmd='$OBJDUMP -f'
58    ;;
59  
60 +cegcc*)
61 +  # ?? shouldn't this be based no build_os, not host_os?
62 +  # use the weaker test based on 'objdump'. See mingw*.
63 +  lt_cv_deplibs_check_method='file_magic file format pei*-arm-little(.*architecture: arm)?'
64 +  lt_cv_file_magic_cmd='$OBJDUMP -f'
65 +  ;;
66 +
67  darwin* | rhapsody*)
68    lt_cv_deplibs_check_method=pass_all
69    ;;
70 @@ -3039,7 +3046,7 @@ case $host_os in
71      esac
72      ;;
73  
74 -  cygwin* | mingw* | pw32*)
75 +  cygwin* | mingw* | pw32* | cegcc*)
76      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
77      # as there is no search path for DLLs.
78      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
79 @@ -4673,7 +4680,7 @@ case $host_os in
80  aix*)
81    symcode='[[BCDT]]'
82    ;;
83 -cygwin* | mingw* | pw32*)
84 +cygwin* | mingw* | pw32* | cegcc*)
85    symcode='[[ABCDGISTW]]'
86    ;;
87  hpux*) # Its linker distinguishes data from code symbols
88 @@ -4876,7 +4883,7 @@ AC_MSG_CHECKING([for $compiler option to
89      beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
90        # PIC is the default for these OSes.
91        ;;
92 -    mingw* | cygwin* | os2* | pw32*)
93 +    mingw* | cygwin* | os2* | pw32* | cegcc*)
94        # This hack is so that the source file can tell whether it is being
95        # built for inclusion in a dll (and should export symbols for example).
96        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
97 @@ -5150,7 +5157,7 @@ AC_MSG_CHECKING([for $compiler option to
98        # PIC is the default for these OSes.
99        ;;
100  
101 -    mingw* | cygwin* | pw32* | os2*)
102 +    mingw* | cygwin* | pw32* | os2* | cegcc*)
103        # This hack is so that the source file can tell whether it is being
104        # built for inclusion in a dll (and should export symbols for example).
105        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
106 @@ -5220,7 +5227,7 @@ AC_MSG_CHECKING([for $compiler option to
107         esac
108         ;;
109  
110 -    mingw* | cygwin* | pw32* | os2*)
111 +    mingw* | cygwin* | pw32* | os2* | cegcc*)
112        # This hack is so that the source file can tell whether it is being
113        # built for inclusion in a dll (and should export symbols for example).
114        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
115 @@ -5391,7 +5398,7 @@ ifelse([$1],[CXX],[
116    pw32*)
117      _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
118    ;;
119 -  cygwin* | mingw*)
120 +  cygwin* | mingw* | cegcc*)
121      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
122    ;;
123    *)
124 @@ -5438,7 +5445,7 @@ ifelse([$1],[CXX],[
125    # Just being paranoid about ensuring that cc_basename is set.
126    _LT_CC_BASENAME([$compiler])
127    case $host_os in
128 -  cygwin* | mingw* | pw32*)
129 +  cygwin* | mingw* | pw32* | cegcc*)
130      # FIXME: the MSVC++ port hasn't been tested in a loooong time
131      # When not using gcc, we currently assume that we are using
132      # Microsoft Visual C++.
133 @@ -5524,7 +5531,7 @@ EOF
134        fi
135        ;;
136  
137 -    cygwin* | mingw* | pw32*)
138 +    cygwin* | mingw* | pw32* | cegcc*)
139        # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
140        # as there is no search path for DLLs.
141        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
142 @@ -5824,7 +5831,7 @@ _LT_EOF
143        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
144        ;;
145  
146 -    cygwin* | mingw* | pw32*)
147 +    cygwin* | mingw* | pw32* | cegcc*)
148        # When not using gcc, we currently assume that we are using
149        # Microsoft Visual C++.
150        # hardcode_libdir_flag_spec is actually meaningless, as there is
This page took 0.039087 seconds and 3 git commands to generate.