[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cygwin|mingw] dlpreopen and disable-static

From: Charles Wilson
Subject: Re: [cygwin|mingw] dlpreopen and disable-static
Date: Mon, 26 May 2008 12:08:28 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/20080421 Thunderbird/ Mnenhy/

Charles Wilson wrote:

I need to run git-blame on that section of code and trace its evolution, I think.

Hey, wait just a doggone minute, in CURRENT libtool:

libtool.m4: 4159 _LT_LINKER_SHLIBS([TAGNAME]) sets it [correctly?] here

  cygwin* | mingw*)
_LT_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

libtool.m4: 4304 _LT_LINKER_SHLIBS([TAGNAME])
but then resets it [incorrectly?] in a different 'case $host' expression a little later!

    cygwin* | mingw* | pw32*)
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
      # as there is no search path for DLLs.
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
      _LT_TAGVAR(always_export_symbols, $1)=no
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'

What is the first 'case $host' expression there for? Why isn't it folded into the other one? And why do the two separate 'case $host' blocks specify different export_symbols_cmds for the same $host?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]