[geos-devel] --ldflags oddness in geos-config
Greg Troxel
gdt at lexort.com
Wed Mar 11 16:14:11 PDT 2020
pkgsrc is carrying this patch. When expanded in our build, this turns
into
--ldflags)
echo -L${exec_prefix}/lib -Wl,-R/usr/pkg/lib
;;
It seems clear that the rpath type instructions need to be continued on;
without it the build of the program that depends on geos will be wrong.
(I'm not clear on why the -L argument doesn't get duplicated.)
Plus, it seems all the --libs stanzas have -L${exec_prefix}/lib in them,
even though those are lddfags, not libs.
Does this work for anyone, intalling into a prefix not in the default
link path, and using geos-config to build something against geos to a
third prefix so that there isn't a rpath command for the geos libdir?
Thoughts?
--- tools/geos-config.in.orig 2019-10-03 17:32:04.000000000 +0000
+++ tools/geos-config.in
@@ -58,7 +58,7 @@ case $1 in
echo -L at libdir@ -lgeos -lm
;;
--ldflags)
- echo -L at libdir@
+ echo -L at libdir@ @LDFLAGS@
;;
--includes)
echo @prefix@/include
More information about the geos-devel
mailing list