]> sigrok.org Git - sigrok-util.git/commitdiff
Use patch instead of sed to apply hack to pulseview link flags.
authorMartin Ling <redacted>
Sun, 22 Dec 2013 20:45:47 +0000 (20:45 +0000)
committerMartin Ling <redacted>
Sun, 22 Dec 2013 20:45:47 +0000 (20:45 +0000)
cross-compile/mingw/pulseview.patch [new file with mode: 0644]
cross-compile/mingw/sigrok-cross-mingw

diff --git a/cross-compile/mingw/pulseview.patch b/cross-compile/mingw/pulseview.patch
new file mode 100644 (file)
index 0000000..e80207e
--- /dev/null
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 443dea6..7b91e0b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -250,6 +250,7 @@ set(PULSEVIEW_LINK_LIBS
+ if(STATIC_PKGDEPS_LIBS)
+       link_directories(${PKGDEPS_STATIC_LIBRARY_DIRS})
+       list(APPEND PULSEVIEW_LINK_LIBS ${PKGDEPS_STATIC_LIBRARIES})
++      list(APPEND PULSEVIEW_LINK_LIBS "-llzma -llcms2") # Quick hack
+ else()
+       link_directories(${PKGDEPS_LIBRARY_DIRS})
+       list(APPEND PULSEVIEW_LINK_LIBS ${PKGDEPS_LIBRARIES})
index 6b6c2ac4c4c1fe79ec3c21c148dc795b6ba4c91f..c2cf88baafbc04638a8da6ef4abc654d06b0b1bf 100755 (executable)
@@ -111,8 +111,7 @@ cd ..
 # PulseView
 git clone git://sigrok.org/pulseview
 cd pulseview
-# Temporary workaround: append (not prepend) "-llzma -llcms2" to the linker.
-sed -i '247a \\tlist(APPEND PULSEVIEW_LINK_LIBS "-llzma -llcms2") # Quick hack' CMakeLists.txt
+patch -p1 < ../../pulseview.patch
 PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 cmake $CM -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y . && make install VERBOSE=1
 makensis -DHOME=$HOME contrib/pulseview_cross.nsi
 cd ..