Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, February 2008
duplicate qatomic.o in src/corelib/Makefile


Message 1 in thread

Hi

Here's a mail I just posted to the KDE4 list for Solaris. I guess this 
also affects anyone using compilers other than GCC and Intel.

Paul

######

thread/thread.pri contains

SOURCES += thread/qatomic.cpp \

so a rule to make qatomic.o from thread/qatomic.cpp will be generated in 
the makefile, unconditionally.

arch.pri includes $$QT_ARCH_CPP/arch.pri, which I presume means 
arch/i386/arch.pri, which includes

!*-g++*:!*-icc*:SOURCES += $$QT_ARCH_CPP/qatomic.s

So for compilers other than GCC and Intel, a rule to make qatomic.o from 
   arch/i386/qatomic.s is generated.

I'm not sure of the best way to fix it. Something like this in 
thread/thread.pri

*-g++* {
SOURCES += thread/qatomic.cpp
}
*-icc* {
SOURCES += thread/qatomic.cpp
}

I don't like the duplication, but I don't know of a way to perform a 
logical or with scopes like

*-g++* || *-icc* {
SOURCES += thread/qatomic.cpp
}


To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx