Skip to content

Commit

Permalink
Refine patch file
Browse files Browse the repository at this point in the history
Remove "-lm" flag which is not consisten with the original Makefile
  • Loading branch information
eecheng87 committed Dec 9, 2022
1 parent 390adee commit e3d3ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/redis.patch
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ diff '--color=auto' -Naur old/redis-1.3.12/Makefile new/redis-1.3.12/Makefile
zmalloc.o: zmalloc.c config.h

redis-server: $(OBJ)
- $(CC) -o $(PRGNAME) $(CCOPT) $(DEBUG) $(OBJ) -lm
- $(CC) -o $(PRGNAME) $(CCOPT) $(DEBUG) $(OBJ)
+ $(CC) ../wrapper/preload.c -o ../wrapper/preload.o -c
+ $(CC) -o $(PRGNAME) $(CCOPT) $(DEBUG) $(OBJ) ../wrapper/preload.o -lm
@echo ""
Expand Down

0 comments on commit e3d3ea1

Please sign in to comment.