diff --git a/Makefile b/Makefile index fc778de..cf13c58 100644 --- a/Makefile +++ b/Makefile @@ -7,12 +7,12 @@ # uncomment the last part in line 10 to specify current working # directory as the default search path for shared objects -CFLAGS =-Wall -Werror #-Wl,-rpath,$(shell pwd) +CFLAGS =-Wall -Werror -Wl,-rpath,$(shell pwd) LIBS = -L. -lmy_shared all: main.o libmy_static.a libmy_shared.so - cc $(LIBS) -o my_app main.o libmy_static.a $(CFLAGS) + cc $(LIBS) -o my_app main.o libmy_static.a libmy_shared.so $(CFLAGS) main.o: main.c cc -c main.c $(CFLAGS) diff --git a/README.md b/README.md new file mode 100644 index 0000000..868b126 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Fixed bugs in makefile and error while loading shared libraries