diff --git a/pokerth_game.pro b/pokerth_game.pro index 3f5e4a61..c8876897 100644 --- a/pokerth_game.pro +++ b/pokerth_game.pro @@ -10,7 +10,7 @@ CODECFORSRC = UTF-8 CONFIG += qt thread embed_manifest_exe exceptions rtti stl warn_on release #CONFIG += qt thread embed_manifest_exe exceptions rtti stl warn_on debug -#Uncomment this for RELEASE +#####Uncomment this for RELEASE #QTPLUGIN += qjpeg qgif UI_DIR = uics @@ -302,6 +302,10 @@ unix{ unix: !mac{ + ##### My release static build options + #QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections + #QMAKE_LFLAGS += -Wl,--gc-sections + LIBPATH += lib LIB_DIRS = $${PREFIX}/lib $${PREFIX}/lib64 @@ -348,8 +352,8 @@ unix: !mac{ LIBS += -lgnutls-openssl -lgcrypt -lSDL_mixer -lcurl -lz TARGETDEPS += ./lib/libpokerth_lib.a - ## My release static libs - #LIBS += -lcrypto_static -lSDL_mixer_static -lSDL -lmikmod + ##### My release static libs + #LIBS += -lgcrypt_static -lgpg-error_static -lgnutls-openssl_static -lgnutls_static -lSDL_mixer_static -lSDL -lmikmod -lcurl -lz #### INSTALL #### diff --git a/pokerth_lib.pro b/pokerth_lib.pro index 3049c84d..90bf2204 100644 --- a/pokerth_lib.pro +++ b/pokerth_lib.pro @@ -184,6 +184,9 @@ win32{ INCLUDEPATH += ../boost/ ../GnuTLS/include ../curl/include ../zlib } !win32{ + ##### My release static build options + #QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections + DEPENDPATH += src/net/linux/ src/core/linux SOURCES += src/net/linux/socket_helper.cpp \ src/net/linux/socket_startup.cpp diff --git a/pokerth_server.pro b/pokerth_server.pro index 759ea2f7..e21f2ad1 100644 --- a/pokerth_server.pro +++ b/pokerth_server.pro @@ -157,6 +157,10 @@ unix { unix : !mac { + ##### My release static build options + #QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections + #QMAKE_LFLAGS += -Wl,--gc-sections + LIBPATH += lib LIB_DIRS = $${PREFIX}/lib $${PREFIX}/lib64