From: Martin Potzi Date: Fri, 7 Jan 2011 10:42:15 +0000 (+0100) Subject: prefer dynamic ofer static python library X-Git-Url: http://g0dil.de/git?p=pykit.git;a=commitdiff_plain;h=d9498c19693c3e80b6ca6445003ccca18ea908a6 prefer dynamic ofer static python library --- diff --git a/pykit.pro b/pykit.pro index d003a18..d36f6c5 100644 --- a/pykit.pro +++ b/pykit.pro @@ -35,15 +35,15 @@ isEmpty(LIBPYTHON) { # OUCH ... on Mac we sometimes have multiple python versions (in this case MacPorts and native) # We need to explicitly specify the path as to link against the correct Version LIBS -= $$system($$PYTHONCONFIG --libs | sed -e "'s/.*\\\\(-lpython[0-9.]*\\\\\).*/\\\\1/'") - LIBS += $$system(ls `$$PYTHONCONFIG --ldflags | sed -e "'s/.*-L\\\\([^ ]*\\\\).*/\\\\1/'"`/lib`$$PYTHONCONFIG --libs | sed -e "'s/.*-l\\\\(python[0-9.]*\\\\).*/\\\\1/'"`* | head -1) + LIBS += $$system(ls `$$PYTHONCONFIG --ldflags | sed -e "'s/.*-L\\\\([^ ]*\\\\).*/\\\\1/'"`/lib`$$PYTHONCONFIG --libs | sed -e "'s/.*-l\\\\(python[0-9.]*\\\\).*/\\\\1/'"`* | tail -1) } else { LIBS += -l$$LIBPYTHON } mac { + QMAKE_CXXFLAGS += -mmacosx-version-min=10.4 QMAKE_CXXFLAGS -= -arch ppc x86_64 i386 - QMAKE_CFLAGS -= -arch ppc x86_64 i386 } win32 {