comparison acinclude.m4 @ 730:0f4f974d0201

Use a unique base address for each DLL. Fixed ltmain.sh for MSYS development environment.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 06 Oct 2003 08:34:08 +0000
parents dac996d69abb
children a5defa3b93e1
comparison
equal deleted inserted replaced
729:dac996d69abb 730:0f4f974d0201
3041 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3041 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3042 _LT_AC_TAGVAR(always_export_symbols, $1)=no 3042 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3043 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 3043 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3044 3044
3045 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 3045 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3046 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 3046 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
3047 # If the export-symbols file already is a .def file (1st line 3047 # If the export-symbols file already is a .def file (1st line
3048 # is EXPORTS), use it as is; otherwise, prepend... 3048 # is EXPORTS), use it as is; otherwise, prepend...
3049 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 3049 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3050 cp $export_symbols $output_objdir/$soname.def; 3050 cp $export_symbols $output_objdir/$soname.def;
3051 else 3051 else
3052 echo EXPORTS > $output_objdir/$soname.def; 3052 echo EXPORTS > $output_objdir/$soname.def;
3053 cat $export_symbols >> $output_objdir/$soname.def; 3053 cat $export_symbols >> $output_objdir/$soname.def;
3054 fi~ 3054 fi~
3055 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 3055 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
3056 else 3056 else
3057 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3057 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3058 fi 3058 fi
3059 ;; 3059 ;;
3060 3060
5264 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5264 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5265 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5265 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5266 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 5266 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5267 5267
5268 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 5268 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5269 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5269 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
5270 # If the export-symbols file already is a .def file (1st line 5270 # If the export-symbols file already is a .def file (1st line
5271 # is EXPORTS), use it as is; otherwise, prepend... 5271 # is EXPORTS), use it as is; otherwise, prepend...
5272 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5272 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5273 cp $export_symbols $output_objdir/$soname.def; 5273 cp $export_symbols $output_objdir/$soname.def;
5274 else 5274 else
5275 echo EXPORTS > $output_objdir/$soname.def; 5275 echo EXPORTS > $output_objdir/$soname.def;
5276 cat $export_symbols >> $output_objdir/$soname.def; 5276 cat $export_symbols >> $output_objdir/$soname.def;
5277 fi~ 5277 fi~
5278 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5278 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
5279 else 5279 else
5280 ld_shlibs=no 5280 ld_shlibs=no
5281 fi 5281 fi
5282 ;; 5282 ;;
5283 5283