summaryrefslogtreecommitdiff
path: root/pcr/freefilesync/revert_linkflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/freefilesync/revert_linkflags.patch')
-rw-r--r--pcr/freefilesync/revert_linkflags.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/pcr/freefilesync/revert_linkflags.patch b/pcr/freefilesync/revert_linkflags.patch
new file mode 100644
index 000000000..323924a00
--- /dev/null
+++ b/pcr/freefilesync/revert_linkflags.patch
@@ -0,0 +1,35 @@
+diff -r -u a/FreeFileSync/Source/Makefile b/FreeFileSync/Source/Makefile
+--- a/FreeFileSync/Source/Makefile
++++ b/FreeFileSync/Source/Makefile
+@@ -4,7 +4,7 @@
+ -Wall -Wfatal-errors -Wmissing-include-dirs -Wswitch-enum -Wcast-align -Wshadow -Wnon-virtual-dtor \
+ -O3 -DNDEBUG `wx-config --cxxflags --debug=no` -pthread
+
+-linkFlags = -s -no-pie `wx-config --libs std, aui, richtext --debug=no` -pthread
++linkFlags = -s -no-pie `wx-config --libs std, aui, richtext --debug=no` -lz -pthread
+
+
+ cxxFlags += `pkg-config --cflags openssl`
+@@ -17,6 +17,7 @@
+ linkFlags += `pkg-config --libs libssh2`
+
+ cxxFlags += `pkg-config --cflags gtk+-2.0`
++linkFlags += `pkg-config --libs gtk+-2.0`
+ #treat as system headers so that warnings are hidden:
+ cxxFlags += -isystem/usr/include/gtk-2.0
+
+diff -r -u a/FreeFileSync/Source/RealTimeSync/Makefile b/FreeFileSync/Source/RealTimeSync/Makefile
+--- a/FreeFileSync/Source/RealTimeSync/Makefile
++++ b/FreeFileSync/Source/RealTimeSync/Makefile
+@@ -4,10 +4,11 @@
+ -Wall -Wfatal-errors -Wmissing-include-dirs -Wswitch-enum -Wcast-align -Wshadow -Wnon-virtual-dtor \
+ -O3 -DNDEBUG `wx-config --cxxflags --debug=no` -pthread
+
+-linkFlags = -s -no-pie `wx-config --libs std, aui, richtext --debug=no` -pthread
++linkFlags = -s -no-pie `wx-config --libs std, aui, richtext --debug=no` -lz -pthread
+
+ #Gtk - support "no button border"
+ cxxFlags += `pkg-config --cflags gtk+-2.0`
++linkFlags += `pkg-config --libs gtk+-2.0`
+ #treat as system headers so that warnings are hidden:
+ cxxFlags += -isystem/usr/include/gtk-2.0