From 75551a13e90e9dc289d79fe52a22c2ddfa0b01fb Mon Sep 17 00:00:00 2001 From: David-Valters <46930139+David-Valters@users.noreply.github.com> Date: Fri, 29 Apr 2022 22:55:58 +0300 Subject: [PATCH 1/2] fix makefile error and error while loading shared libraries --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) From a2c2ecdf68839e13531b1df79143eef8d7df84fb Mon Sep 17 00:00:00 2001 From: David-Valters <46930139+David-Valters@users.noreply.github.com> Date: Fri, 29 Apr 2022 22:58:58 +0300 Subject: [PATCH 2/2] Create README.md --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md 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