use -Wl,-rpath option

This commit is contained in:
Yuichi Nishiwaki 2014-02-03 01:23:03 +09:00
parent 0592c977da
commit d64b28d23b
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ debug: build
build: build-lib build-main
build-main:
$(CC) $(CFLAGS) -D_GNU_SOURCE tools/main.c src/*.c -o bin/picrin -I./include -I./extlib -L./lib -lreadline -lm -lxfile
$(CC) $(CFLAGS) -D_GNU_SOURCE -Wl,-rpath lib tools/main.c src/*.c -o bin/picrin -I./include -I./extlib -L./lib -lreadline -lm -lxfile
build-lib:
cd src; \