Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
4.3.4
-
None
Description
When building a static universal library on an Intel Mac machine the precompiled header does not get compiled correctly for PPC.
Reproducible with the following pro file:
TEMPLATE = lib
CONFIG += warn_on \
exceptions \
rtti \
precompile_header \
staticlib \
create_prl \
build_all \
debug_and_release
CONFIG += x86 ppc
QT += gui
win32:CONFIG+=console
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
- Input
SOURCES += main.cpp
HEADERS += header.h
PRECOMPILED_HEADER += header.h
DEFINES += USING_PCH
Error message:
make -f Makefile.Release all
g++ -pipe -Os -arch ppc -arch i386 -fPIC -Wall -W -DUSING_PCH -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/Users/jberg/depot/qt-4.4/mkspecs/macx-g++ -I. -I/Users/jberg/depot/qt-4.4/lib/QtCore.framework/Versions/4/Headers -I/Users/jberg/depot/qt-4.4/include/QtCore -I/Users/jberg/depot/qt-4.4/include/QtCore -I/Users/jberg/depot/qt-4.4/lib/QtGui.framework/Versions/4/Headers -I/Users/jberg/depot/qt-4.4/include/QtGui -I/Users/jberg/depot/qt-4.4/include/QtGui -I/Users/jberg/depot/qt-4.4/include -I. -Irelease -I. -F/Users/jberg/depot/qt-4.4/lib -x c+-header -c header.h -o release/bene.gch/c+
lipo: can't figure out the architecture type of: /var/folders/uf/uf2p4BLCEg88YCHuyY5kC++++TQ/Tmp//ccAtTOgi.out
make[1]: *** [release/bene.gch/c++] Error 1
make: *** [release-all] Error 2