Skip to content

Commit 10effc6

Browse files
metzmrouault
authored andcommitted
GDAL GRASS driver: add rpath to Makefile.in
1 parent d10654c commit 10effc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gdal/frmts/grass/pkg/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ distclean: clean
3434

3535

3636
$(GLIBNAME): grass.o
37-
$(LD_SHARED) $(LDFLAGS) grass.o $(LIBS) -o $(GLIBNAME)
37+
$(LD_SHARED) $(LDFLAGS) grass.o $(LIBS) -o $(GLIBNAME) -Wl,-rpath,"@GRASS_GISBASE@/lib"
3838

3939
$(OLIBNAME): ogrgrassdriver.o ogrgrassdatasource.o ogrgrasslayer.o
40-
$(LD_SHARED) $(LDFLAGS) ogrgrassdriver.o ogrgrassdatasource.o ogrgrasslayer.o $(LIBS) -o $(OLIBNAME)
40+
$(LD_SHARED) $(LDFLAGS) ogrgrassdriver.o ogrgrassdatasource.o ogrgrasslayer.o $(LIBS) -o $(OLIBNAME) -Wl,-rpath,"@GRASS_GISBASE@/lib"
4141

4242
%.o: %.cpp
4343
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<

0 commit comments

Comments
 (0)