[csw-devel] SF.net SVN: gar:[12529] csw/mgar/pkg/gmt/trunk/Makefile
gadavis at users.sourceforge.net
gadavis at users.sourceforge.net
Thu Jan 13 21:25:40 CET 2011
Revision: 12529
http://gar.svn.sourceforge.net/gar/?rev=12529&view=rev
Author: gadavis
Date: 2011-01-13 20:25:40 +0000 (Thu, 13 Jan 2011)
Log Message:
-----------
Tell configure about it's environment properly, and work around non-standard shared object creation
Modified Paths:
--------------
csw/mgar/pkg/gmt/trunk/Makefile
Modified: csw/mgar/pkg/gmt/trunk/Makefile
===================================================================
--- csw/mgar/pkg/gmt/trunk/Makefile 2011-01-13 20:22:17 UTC (rev 12528)
+++ csw/mgar/pkg/gmt/trunk/Makefile 2011-01-13 20:25:40 UTC (rev 12529)
@@ -34,17 +34,22 @@
#WORKSRC = $(WORKDIR)/GMT$(VERSION)
DISTNAME = GMT$(GMT_VERSION)
+## GMT has some "interesting" linker commands for creating shared objects in
+## src/Makefile that require LD_LIBRARY_PATH to be set during the build phase
+LD_LIBRARY_PATH = /opt/csw/lib/$(MM_LIBDIR)
+BUILD_ENV += LD_LIBRARY_PATH="$(LD_LIBRARY_PATH)"
+
## Arguments passed to the ./configure script. Configure ignores the various
## environment variables so we have to pass CFLAGS and friends
+CONFIGURE_ARGS += NETCDF_LIB=$(libdir)
+CONFIGURE_ARGS += CFLAGS="$(CFLAGS)"
+CONFIGURE_ARGS += LDFLAGS="$(LDFLAGS)"
+CONFIGURE_ARGS += CXXFLAGS="$(CXXFLAGS)"
CONFIGURE_ARGS += $(DIRPATHS)
CONFIGURE_ARGS += --disable-mex
CONFIGURE_ARGS += --enable-shared
CONFIGURE_ARGS += --enable-netcdf=/opt/csw
-CONFIGURE_ENV += NETCDF_LIB=$(libdir)
-CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
-CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
-CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
## Attempt to build this 64-bit
BUILD64 = 1
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list