Skip to content

Commit 286b5cf

Browse files
Merge branch 'devel' of github.com:wtsi-npg/simtools into devel
2 parents 4575f4b + fde1469 commit 286b5cf

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)