Skip to content

Commit

Permalink
compiling with -fPIC for the shared object.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximaz committed Mar 20, 2024
1 parent a395638 commit 73dd15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ tests/%.o: tests/%.c

all: $(NAME)

$(NAME): CFLAGS = -Wall -Wextra -Werror -pedantic -ansi
$(NAME): CFLAGS = -Wall -Wextra -Werror -pedantic -ansi -fPIC
$(NAME): clean $(OBJS)
$(CC) -shared -fPIC $(OBJS) -o $(NAME)

Expand Down

0 comments on commit 73dd15a

Please sign in to comment.