From d74a637ebb792639187b261276c0349b3dac5071 Mon Sep 17 00:00:00 2001 From: Gregory Date: Wed, 24 Apr 2019 21:03:47 +0300 Subject: [PATCH] fpic object files --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1689481..28d88d5 100644 --- a/Makefile +++ b/Makefile @@ -118,7 +118,7 @@ CC := clang # rules $(NAME): $(OBJ) - $(CC) -shared -fpic $(OBJ) -o $(NAME) $(LINK_FLAGS) + $(CC) -shared $(OBJ) -o $(NAME) $(LINK_FLAGS) $(TEST_BIN): $(TEST_OBJ) $(CC) $(TEST_OBJ) $(LINK_FLAGS) -o $(TEST_BIN) @@ -129,7 +129,7 @@ $(OBJ_DIR): mkdir $(OBJ_DIR) $(OBJ_DIR)%.o: %.c $(LIBFT) $(HEADERS) - $(CC) -c $< -o $@ $(CC_FLAGS) $(HEADER_FLAGS) + $(CC) -fpic -c $< -o $@ $(CC_FLAGS) $(HEADER_FLAGS) $(LIBFT): $(MAKE) -C $(LIBFT_DIR)