You are not logged in.
It appears that its calling g++ with different CXXFLAGS than I specified in makepkg.conf, I'm not sure if it is or not, but when reading the output during makpkg -s it looks like its using its own generic flags.
I'm just learning ABS and I've been messing with the arora browser as a test build cause I know its small and Qt4 based, so I don't need to worry about dependancy issues.
Here's an example of the output:
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_STRICT_ITERATORS -DQT_NO_UITOOLS -DGITVERSION="\"0\"" -DGITCHANGENUMBER="\"0\"" -DDATADIR=\"/usr/share\" -DPKGDATADIR=\"/usr/share/arora\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtScript -I/usr/include/QtWebKit -I/usr/include -I. -Iadblock -Ibookmarks -Ibookmarks/xbel -Ihistory -Ilocationbar -Inetwork -Inetwork/cookiejar -Inetwork/cookiejar/networkcookiejar -Iopensearch -Iqwebplugins -Iqwebplugins/clicktoflash -Iutils -Ilocale -I.moc -I.ui -o .obj/qrc_data.o .rcc/qrc_data.cpp
Here's my makepkg.conf
#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
#CHOST="x86_64-unknown-linux-gnu"
#-- Exclusive: will only run on x86_64
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j5"
Anyone that can enlightent me please help :-)
Offline
$CXXFLAGS is just an environment variable. It only matters when it's actually called upon. In this case, the makefile is being called with its hardcoded $CXXFLAGS:
DEFINES = -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_STRICT_ITERATORS -DQT_NO_UITOOLS -DGITVERSION="\"0\"" -DGITCHANGENUMBER="\"0\"" -DDATADIR=\"/usr/share\" -DPKGDATADIR=\"/usr/share/arora\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
CXXFLAGS = -pipe -march=i686 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT $(DEFINES)
You can change the PKGBUILD's make command to something like this if you want to use your own $CXXFLAGS:
make CXXFLAGS="$CXXFLAGS -D_REENTRANT \$(DEFINES)" || return 1
Offline