From 1c6560a521a37d48f689ebf8512c355d20d014ce Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Thu, 5 Dec 2002 20:48:06 +0000 Subject: [PATCH] Changed libdir references to LIBPATH and started using the magic $libpath entry for default installs. git-svn-id: http://svn.osgeo.org/postgis/trunk@219 b70326c6-7e19-0410-871a-916f4a2858ee --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 00a871fc2..8c8a1baf5 100644 --- a/Makefile +++ b/Makefile @@ -22,11 +22,11 @@ subdir=contrib/postgis ifeq (${PGSQL_SRC},) top_builddir = ../.. include $(top_builddir)/src/Makefile.global - libdir := $$libdir + LPATH := $$libdir else top_builddir = ${PGSQL_SRC} include $(top_builddir)/src/Makefile.global - libdir := ${PWD} + LPATH := ${PWD} endif #--------------------------------------------------------------- @@ -104,8 +104,8 @@ loaderdumper: include $(top_srcdir)/src/Makefile.shlib $(NAME).sql: $(NAME).sql.in $(NAME)_gist_$(USE_VERSION).sql.in - sed -e 's:@MODULE_FILENAME@:$(libdir)/$(shlib):g;s:@POSTGIS_VERSION@:$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION):g' < $(NAME).sql.in > $@ - sed -e 's:@MODULE_FILENAME@:$(libdir)/$(shlib):g;s:@POSTGIS_VERSION@:$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION):g' < $(NAME)_gist_$(USE_VERSION).sql.in >> $(NAME).sql + sed -e 's:@MODULE_FILENAME@:$(LPATH)/$(shlib):g;s:@POSTGIS_VERSION@:$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION):g' < $(NAME).sql.in > $@ + sed -e 's:@MODULE_FILENAME@:$(LPATH)/$(shlib):g;s:@POSTGIS_VERSION@:$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION):g' < $(NAME)_gist_$(USE_VERSION).sql.in >> $(NAME).sql $(NAME)_undef.sql: $(NAME).sql perl create_undef.pl $< > $@ -- 2.49.0