On Wednesday March 11 2015 13:19:16 René J.V. Bertin wrote: > As said, this works for a native build. To do a 32bit build, the build script > adds `-spec macx-clang-32` to the qmake arguments, but it is like that mkspec > is ignored. The command is executed in a virgin source tree that was just > extracted from the (original) tarball. When I use this same mkspec to > configure any other project outside of the Qt source tree it is taken into > account as expected. So it seems there is something in > qtbase/src/plugins/sqldrivers/sqlite (or higher up in the same tree) that > modifies qmake's behaviour. > > What c/should I be looking for?
- extract a virgin copy of qtbase - chdir into qtbase/src/plugins/sqldrivers/sqlite - /opt/local/libexec/qt5/bin/qmake -spec /opt/local/share/qt5/mkspecs/macx-clang-32 CXXFLAGS+="-arch i386" Info: creating stash file .qmake.stash - head Makefile ############################################################################# # Makefile for building: libqsqlite.dylib # Generated by qmake (3.0) (Qt 5.4.1) # Project: sqlite.pro # Template: lib # Command: /opt/local/libexec/qt5/bin/qmake -spec /opt/local/share/qt5/mkspecs/macx-clang-32 CXXFLAGS+=-arch\ i386 -o Makefile sqlite.pro ############################################################################# MAKEFILE = Makefile ####### Compiler, tools and options CC = /usr/bin/clang CXX = /usr/bin/clang++ DEFINES = -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DNDEBUG -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_RTREE -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB CFLAGS = -O3 -march=native -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.7 -fvisibility=hidden -fno-exceptions -Wall -W -fPIC $(DEFINES) CXXFLAGS = -O3 -march=native -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -fPIC $(DEFINES) the `-arch i386` arguments required to create an i386 build are nowhere to be found. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest