Skip to content

Instantly share code, notes, and snippets.

@false-git
Last active March 17, 2016 08:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save false-git/b83f4ab8c3fc6759d684 to your computer and use it in GitHub Desktop.
Save false-git/b83f4ab8c3fc6759d684 to your computer and use it in GitHub Desktop.
quazip(http://quazip.sourceforge.net/) を Mac OS Xでビルドするためのパッチ
*** quazip/quazip.pro.orig 2015-03-12 13:50:17.000000000 +0900
--- quazip/quazip.pro 2015-03-13 13:19:12.000000000 +0900
***************
*** 44,49 ****
--- 44,54 ----
}
+ macx {
+ QMAKE_LIBS += -lz
+ QMAKE_LFLAGS_SONAME = -Wl,-install_name,$$PREFIX/lib/
+ }
+
win32 {
headers.path=$$PREFIX/include/quazip
headers.files=$$HEADERS
***************
*** 51,56 ****
--- 56,62 ----
INSTALLS += headers target
# workaround for qdatetime.h macro bug
DEFINES += NOMINMAX
+ QMAKE_LIBS += -lz
}
*** qztest/qztest.pro.orig 2015-03-13 13:19:31.000000000 +0900
--- qztest/qztest.pro 2015-03-13 13:19:48.000000000 +0900
***************
*** 6,12 ****
CONFIG -= app_bundle
DEPENDPATH += .
INCLUDEPATH += .
! !win32: LIBS += -lz
win32 {
# workaround for qdatetime.h macro bug
DEFINES += NOMINMAX
--- 6,12 ----
CONFIG -= app_bundle
DEPENDPATH += .
INCLUDEPATH += .
! LIBS += -lz
win32 {
# workaround for qdatetime.h macro bug
DEFINES += NOMINMAX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment