Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed bugs in makefile and error while loading shared libraries