ports/cad/pcb2gcode/patches/patch-m4_geos_m4

16 lines
574 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
# --libs creates -lgeos-${VERSION}, which we don't build. --static-cclibs does
# the right thing here.
Index: m4/geos.m4
--- m4/geos.m4.orig
+++ m4/geos.m4
@@ -77,7 +77,7 @@ AC_DEFUN([GEOS_INIT],[
if $GEOS_CONFIG --libs >/dev/null 2>&1; then
AC_MSG_RESULT(yes)
HAVE_GEOS="yes"
- GEOS_LIBS="`$GEOS_CONFIG --libs`"
+ GEOS_LIBS="`$GEOS_CONFIG --static-cclibs`"
GEOS_C_LIBS="`$GEOS_CONFIG --ldflags` -lgeos_c"
GEOS_CC_LIBS="`$GEOS_CONFIG --ldflags` -lgeos"
GEOS_CFLAGS="`$GEOS_CONFIG --cflags`"