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: NonePriority: 5 - Normal
Severity: 2 - MinorStatus: None
Privacy: PublicAssigned to: None
Originator Email: -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
removelist="$removelist $output_obj $lockfile"
trap "$run $rm $removelist; exit 1" 1 2 15



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

Attach File(s):

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 click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.


Please enter the title of George Orwell's famous dystopian book (it's a date):



No Changes Have Been Made to This Item

Back to the top

Powered by Savane 3.1-cleanup1