From 8c811009b0d61fa5fd8c8835e9bbfb351fb6a38b Mon Sep 17 00:00:00 2001 From: Kokusho Date: Sun, 8 Sep 2013 01:37:02 +0200 Subject: [PATCH] fix zlib compilation error on ubuntu 13.04 if -lz isn't the last parameter occurs a compilation error --- Qt/PPSSPP.pro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Qt/PPSSPP.pro b/Qt/PPSSPP.pro index 3ffef25dcb..b296777795 100755 --- a/Qt/PPSSPP.pro +++ b/Qt/PPSSPP.pro @@ -27,7 +27,7 @@ win32 { LIBS += -lCore -lCommon -lNative -lwinmm -lws2_32 } linux { - LIBS += -L. -lCore -lCommon -lNative -ldl -lz + LIBS += -L. -lCore -lCommon -lNative -ldl PRE_TARGETDEPS += ./libCommon.a ./libCore.a ./libNative.a !mobile_platform { CONFIG += link_pkgconfig @@ -38,6 +38,8 @@ linux { FFMPEG_DIR=../ffmpeg/linux/x86_64/lib/ LIBS += $${FFMPEG_DIR}libavformat.a $${FFMPEG_DIR}libavcodec.a $${FFMPEG_DIR}libavutil.a $${FFMPEG_DIR}libswresample.a $${FFMPEG_DIR}libswscale.a } + # put this at the end avoids problems with some compilers + LIBS += -lz } # Main