use -Wl,-rpath option
This commit is contained in:
parent
0592c977da
commit
d64b28d23b
2
Makefile
2
Makefile
|
@ -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; \
|
||||
|
|
Loading…
Reference in New Issue