0002-raster-loader-Makefile.in-do-not-force-static-linkin.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 29c33c483e22a4445d870739187d128df0f11f60 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Wed, 27 Jul 2022 15:12:40 +0200
  4. Subject: [PATCH] raster/loader/Makefile.in: do not force static linking
  5. This is similar to commit
  6. https://github.com/postgis/postgis/commit/98070faad220e12fcaed9a583a70a37c510b7c6b,
  7. but applied to raster/loader. It ensures that if only shared variants
  8. of the libraries are available, the link still works. If you force
  9. -static and only shared variants of some of the libraries are
  10. available, the link fails with "d: attempted static link of dynamic
  11. object XYZ".
  12. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  13. Upstream: https://github.com/postgis/postgis/pull/702
  14. ---
  15. raster/loader/Makefile.in | 2 +-
  16. 1 file changed, 1 insertion(+), 1 deletion(-)
  17. diff --git a/raster/loader/Makefile.in b/raster/loader/Makefile.in
  18. index 3df47a96f..d0a408333 100644
  19. --- a/raster/loader/Makefile.in
  20. +++ b/raster/loader/Makefile.in
  21. @@ -36,7 +36,7 @@ PGSQL_BINDIR=@PGSQL_BINDIR@
  22. RT_CORE=../rt_core
  23. -LIBLWGEOM_LDFLAGS= -static ../../liblwgeom/liblwgeom.la
  24. +LIBLWGEOM_LDFLAGS= ../../liblwgeom/liblwgeom.la
  25. LIBLWGEOM_CFLAGS=-I../../liblwgeom
  26. LIBGDAL_CFLAGS=@LIBGDAL_CFLAGS@
  27. LIBGDAL_LDFLAGS=@LIBGDAL_LDFLAGS@
  28. --
  29. 2.37.1