Patch from Dan Scott; adds -rpath=$(LIBDIR) to the default LDFLAGS for
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 29 May 2007 02:43:20 +0000 (02:43 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 29 May 2007 02:43:20 +0000 (02:43 +0000)
OpenSRF, obviating the need to set up non-standard system search paths
for any libs that OpenSRF loads that either don't have a lib prefix
or live outside the normal system library paths.

http://list.georgialibraries.org/pipermail/open-ils-dev/2007-May/001123.html

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@922 9efc2488-bf62-4759-914b-345cdb29e865

src/Makefile

index 008679e..5387888 100644 (file)
@@ -9,7 +9,7 @@ export PERLDIR                  = $(LIBDIR)/perl5
 export INCLUDEDIR              = $(PREFIX)/include
 
 export LDLIBS                  += 
-export LDFLAGS                 += -L $(TMPDIR) -L . -L /opt/lib
+export LDFLAGS                 += -Wl,-rpath=$(LIBDIR) -L $(TMPDIR) -L . -L /opt/lib
 export CFLAGS                  += -pipe -g -Wall -O2 -fPIC -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) \
                                                                -I$(LIBXML2_HEADERS)/libxml  -I$(TMP) \
                                                                -I$(APR_HEADERS) -I$(TMPDIR)