summaryrefslogtreecommitdiffstats
path: root/src/geos-1-fixes.patch
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-10-18 21:57:18 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-10-18 22:52:35 (GMT)
commit627ed07a8f401e0fe330399aca0a71f37c21256e (patch)
treede8dff7300fc58f039f790aab048b1ad861bc757 /src/geos-1-fixes.patch
parentd7cd5fcf4922fbd953bd1edd726cecdebf0809d3 (diff)
downloadmxe-627ed07a8f401e0fe330399aca0a71f37c21256e.zip
mxe-627ed07a8f401e0fe330399aca0a71f37c21256e.tar.gz
mxe-627ed07a8f401e0fe330399aca0a71f37c21256e.tar.bz2
geos: Fix geos-config script
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/geos-1-fixes.patch')
-rw-r--r--src/geos-1-fixes.patch80
1 files changed, 80 insertions, 0 deletions
diff --git a/src/geos-1-fixes.patch b/src/geos-1-fixes.patch
new file mode 100644
index 0000000..fab5058
--- /dev/null
+++ b/src/geos-1-fixes.patch
@@ -0,0 +1,80 @@
+This file is part of MXE.
+See index.html for further information.
+
+From 7966e3a9768f3db85fd93f8e4334ef6b58f0fb92 Mon Sep 17 00:00:00 2001
+From: Timothy Gu <timothygu99@gmail.com>
+Date: Sat, 18 Oct 2014 17:28:27 -0400
+Subject: [PATCH 1/2] geos-config: Fix linking to libm and libstdc++ for static
+
+Signed-off-by: Timothy Gu <timothygu99@gmail.com>
+
+diff --git a/tools/geos-config.in b/tools/geos-config.in
+index 9b45b5f..f521772 100644
+--- a/tools/geos-config.in
++++ b/tools/geos-config.in
+@@ -52,10 +52,10 @@ case $1 in
+ echo -L${libdir} -lgeos
+ ;;
+ --static-clibs)
+- echo -L${libdir} -lgeos_c -lgeos -m
++ echo -L${libdir} -lgeos_c -lgeos -lstdc++ -lm
+ ;;
+ --static-cclibs)
+- echo -L${libdir} -lgeos -m
++ echo -L${libdir} -lgeos -lstdc++ -lm
+ ;;
+ --ldflags)
+ echo -L${libdir}
+--
+1.9.1
+
+
+From 22befe6776025838d876c6f36a789f2ba467fbb6 Mon Sep 17 00:00:00 2001
+From: Timothy Gu <timothygu99@gmail.com>
+Date: Sat, 18 Oct 2014 17:29:24 -0400
+Subject: [PATCH 2/2] [MXE] geos-config: Always link as static
+
+Signed-off-by: Timothy Gu <timothygu99@gmail.com>
+
+diff --git a/tools/geos-config.in b/tools/geos-config.in
+index f521772..4c9a72b 100644
+--- a/tools/geos-config.in
++++ b/tools/geos-config.in
+@@ -40,21 +40,21 @@ case $1 in
+ --cflags)
+ echo -I${prefix}/include
+ ;;
+- --libs)
+- # TODO: make an alias for --clibs
+- # see http://trac.osgeo.org/geos/ticket/497
+- echo -L${libdir} -lgeos
+- ;;
+- --clibs)
+- echo -L${libdir} -lgeos_c
+- ;;
+- --cclibs)
+- echo -L${libdir} -lgeos
+- ;;
+- --static-clibs)
++# --libs)
++# # TODO: make an alias for --clibs
++# # see http://trac.osgeo.org/geos/ticket/497
++# echo -L${libdir} -lgeos
++# ;;
++# --clibs)
++# echo -L${libdir} -lgeos_c
++# ;;
++# --cclibs)
++# echo -L${libdir} -lgeos
++# ;;
++ --clibs|--static-clibs)
+ echo -L${libdir} -lgeos_c -lgeos -lstdc++ -lm
+ ;;
+- --static-cclibs)
++ --libs|--cclibs|--static-cclibs)
+ echo -L${libdir} -lgeos -lstdc++ -lm
+ ;;
+ --ldflags)
+--
+1.9.1
+