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:
Qt Code:
  1. TEMPLATE = lib
  2.  
  3. CONFIG(debug, debug|release) {
  4. TARGET = QHexViewd
  5. } else {
  6. TARGET = QHexView
  7. }
  8.  
  9. DESTDIR = $OUT_PWD/../../lib
  10.  
  11. DEFINES += QHEXVIEW_LIBRARY
  12.  
  13. DEPENDPATH += .
  14. INCLUDEPATH += .
  15.  
  16. # Input
  17. HEADERS += QHexView.h QHexView_global.h
  18. SOURCES += QHexView.cpp
To copy to clipboard, switch view to plain text mode 

And here is the beginning of the generated Makefile:
Qt Code:
  1. ####### Compiler, tools and options
  2.  
  3. CC = gcc
  4. CXX = g++
  5. DEFINES = -DQHEXVIEW_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
  6. 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)
  7. 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)
  8. INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -I.
  9. LINK = g++
  10. LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,libQHexView.so.1
  11. LIBS = $(SUBLIBS) -L/usr/lib64 -lQtGui -lQtCore -lpthread
  12. AR = ar cqs
  13. RANLIB =
  14. QMAKE = /usr/bin/qmake-qt4
  15. TAR = tar -cf
  16. COMPRESS = gzip -9f
  17. COPY = cp -f
  18. SED = sed
  19. COPY_FILE = $(COPY)
  20. COPY_DIR = $(COPY) -r
  21. STRIP =
  22. INSTALL_FILE = install -m 644 -p
  23. INSTALL_DIR = $(COPY_DIR)
  24. INSTALL_PROGRAM = install -m 755 -p
  25. DEL_FILE = rm -f
  26. SYMLINK = ln -f -s
  27. DEL_DIR = rmdir
  28. MOVE = mv -f
  29. CHK_DIR_EXISTS= test -d
  30. MKDIR = mkdir -p
To copy to clipboard, switch view to plain text mode 

Any help or hints will be much appreciated.
Thanks
Jaco