diff --git a/Makefile b/Makefile index a5828838..188f11b6 100644 --- a/Makefile +++ b/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; \