Hi
I have strange problem where my release libraries are bigger than my debug libraries. What's strange is that it only happens on one machine, for all my own libraries. I've done tests on the following machines with the exact same code base:
-> Windows 7, Qt 4.8.4 = release libraries smaller than debug libraries as expected
-> Ubuntu 10.04, Qt 4.8.4 = release libraries smaller than debug libraries as expected
-> Fedora 17, Qt 4.8.1 = release libraries BIGGER than debug libraries
As I've said the code and pro file are exactly the same on all machines. I have no idea on what can possibly cause this.
Here is the PRO file for one of the libraries:
TEMPLATE = lib
CONFIG(debug, debug|release) {
TARGET = QHexViewd
} else {
TARGET = QHexView
}
DESTDIR = $OUT_PWD/../../lib
DEFINES += QHEXVIEW_LIBRARY
DEPENDPATH += .
INCLUDEPATH += .
# Input
HEADERS += QHexView.h QHexView_global.h
SOURCES += QHexView.cpp
TEMPLATE = lib
CONFIG(debug, debug|release) {
TARGET = QHexViewd
} else {
TARGET = QHexView
}
DESTDIR = $OUT_PWD/../../lib
DEFINES += QHEXVIEW_LIBRARY
DEPENDPATH += .
INCLUDEPATH += .
# Input
HEADERS += QHexView.h QHexView_global.h
SOURCES += QHexView.cpp
To copy to clipboard, switch view to plain text mode
And here is the beginning of the generated Makefile:
####### Compiler, tools and options
CC = gcc
CXX = g++
DEFINES = -DQHEXVIEW_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -I.
LINK = g++
LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,libQHexView.so.1
LIBS = $(SUBLIBS) -L/usr/lib64 -lQtGui -lQtCore -lpthread
AR = ar cqs
RANLIB =
QMAKE = /usr/bin/qmake-qt4
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
SED = sed
COPY_FILE = $(COPY)
COPY_DIR = $(COPY) -r
STRIP =
INSTALL_FILE = install -m 644 -p
INSTALL_DIR = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
DEL_FILE = rm -f
SYMLINK = ln -f -s
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
####### Compiler, tools and options
CC = gcc
CXX = g++
DEFINES = -DQHEXVIEW_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -I.
LINK = g++
LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,libQHexView.so.1
LIBS = $(SUBLIBS) -L/usr/lib64 -lQtGui -lQtCore -lpthread
AR = ar cqs
RANLIB =
QMAKE = /usr/bin/qmake-qt4
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
SED = sed
COPY_FILE = $(COPY)
COPY_DIR = $(COPY) -r
STRIP =
INSTALL_FILE = install -m 644 -p
INSTALL_DIR = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
DEL_FILE = rm -f
SYMLINK = ln -f -s
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
To copy to clipboard, switch view to plain text mode
Any help or hints will be much appreciated.
Thanks
Jaco
Bookmarks