Skip to content

Commit fde1469

Browse files
author
Iain Bancarz
committed
Merge pull request #3 from keithj/devel
Patch to set runpath at compile time, instead of relying on LD_LIBRARY_P...
2 parents 0282b13 + e6e820a commit fde1469

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ ifeq ($(DEBUG),y)
5454
else
5555
CFLAGS=-Wall -fPIC -O3 -ffast-math -I$(STLPORT_INC)
5656
endif
57-
LDFLAGS=-L$(STLPORT_LIB) -lstlport
57+
# Set runpath instead of relying on LD_LIBRARY_PATH
58+
LDFLAGS=-Wl,-rpath -Wl,$(STLPORT_LIB) -L$(STLPORT_LIB) -lstlport
5859

5960
default: all
6061

0 commit comments

Comments
 (0)