Compare commits

...

3 Commits

Author SHA1 Message Date
Hongcai Deng 770078044a
Merge a16fde8070 into 4c6efd434b 2026-09-06 15:47:04 +08:00
YuQing 4c6efd434b INSTALL changed for V1.0.88 2026-09-06 14:57:35 +08:00
Hongcai Deng a16fde8070 fix: compile error when build .so using .a
```
src/libfastcommon.a(hash.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
```

env: Ubuntu 14.04, gcc 4.8
2017-01-29 14:20:18 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -21,5 +21,5 @@ Debian, Ubuntu etc.:
# the command lines as:
git clone https://github.com/happyfish100/libfastcommon.git
cd libfastcommon; git checkout V1.0.87
cd libfastcommon; git checkout V1.0.88
./make.sh clean && ./make.sh && sudo ./make.sh install

View File

@ -68,7 +68,7 @@ libfastcommon.a: $(FAST_STATIC_OBJS)
.c:
$(COMPILE) -o $@ $< $(FAST_STATIC_OBJS) $(LIB_PATH) $(INC_PATH)
.c.o:
$(COMPILE) -c -o $@ $< $(INC_PATH)
$(COMPILE) -c -fPIC -o $@ $< $(INC_PATH)
.c.lo:
$(COMPILE) -c -fPIC -o $@ $< $(INC_PATH)
install: