helpGNU Libtool - Support: sr #102300, libtool confused by depcomp

 
 

sr #102300: libtool confused by depcomp

Submitted by:  None
Submitted on:  Thu 24 Jul 2003 02:19:20 PM UTC  
 
Category:  None Priority:  5 - Normal
Severity:  2 - Minor Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 24 Jul 2003 02:19:20 PM UTC, original submission:

A typical incantation as observed in OpenEXR-1.0.5:
source='ImfAttribute.cpp' \
object='libIlmImf_la-ImfAttribute.lo' libtool=yes \
depfile='.deps/libIlmImf_la-ImfAttribute.Plo' \
tmpdepfile='.deps/libIlmImf_la-ImfAttribute.TPlo' \
depmode=sgi /bin/sh \
/apps/src/OpenEXR-1.0.5-INST-irix/depcomp \
/bin/sh ../libtool --mode=compile CC ...

Now, depcomp adds
`-Wp,-MDupdate,.deps/libIlmImf_la-ImfAttribute.TPlo' to
the end of the command line before handing it to
libtool. libtool, then, mistakes that option for a
source file. This gets important when compiler_c_o==no
(compiler can't use -c and -o at the same time), and
the object file has a different basename than the
source ($CC -o newname.o -c oldname.c).

Relevant lines in libtool:

# Calculate the filename of the output object if
compiler does
# not support -o with -c
if test "$compiler_c_o" = no; then
output_obj=`$echo "X$srcfile" | $Xsed -e
's%^.*/%%' -e 's%\.[^.]*$%%'`.${o
bjext}
lockfile="$output_obj.lock"
removelist="$removelist $output_obj $lockfile"
trap "$run $rm $removelist; exit 1" 1 2 15
else

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

No changes have been made to this item

Back to the top


Powered by Savane 3.3