aboutsummaryrefslogtreecommitdiff
path: root/graphics/dia
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2019-09-23 17:55:29 +0000
committerJan Beich <jbeich@FreeBSD.org>2019-09-23 17:55:29 +0000
commitb843090e20b7d71274b66b7bc78c7496034d841e (patch)
treea3aa49e3870ccaf6bf9e7e9fd25b09b959be20d8 /graphics/dia
parent468abcd4ceab930043807b057ae904cd5986b88a (diff)
downloadports-b843090e20b7d71274b66b7bc78c7496034d841e.tar.gz
ports-b843090e20b7d71274b66b7bc78c7496034d841e.zip
graphics/dia: unbreak with clang 9
ld: error: .libs/wmf.o: unable to find library from dependent library specifier: gdi32 Reported by: antoine (via bug 240629 exp-run) Regressed by: https://reviews.llvm.org/rL360984
Notes
Notes: svn path=/head/; revision=512654
Diffstat (limited to 'graphics/dia')
-rw-r--r--graphics/dia/files/patch-plug-ins_wmf_wmf.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/dia/files/patch-plug-ins_wmf_wmf.cpp b/graphics/dia/files/patch-plug-ins_wmf_wmf.cpp
new file mode 100644
index 000000000000..f5ae1a91572f
--- /dev/null
+++ b/graphics/dia/files/patch-plug-ins_wmf_wmf.cpp
@@ -0,0 +1,15 @@
+https://gitlab.gnome.org/GNOME/dia/commit/5cb4adf2d2c5
+
+--- plug-ins/wmf/wmf.cpp.orig 2014-08-24 15:46:01 UTC
++++ plug-ins/wmf/wmf.cpp
+@@ -61,8 +61,10 @@ typedef W32::LOGFONTW LOGFONTW;
+ # define SAVE_EMF
+ #endif
+
++#ifdef G_OS_WIN32
+ /* force linking with gdi32 */
+ #pragma comment( lib, "gdi32" )
++#endif
+
+
+ // #define SAVE_EMF