Compare commits

...

3 Commits

Author SHA1 Message Date
Hongcai Deng 932b16ecb3
Merge a16fde8070 into 564facf33e 2026-08-29 17:59:43 +00:00
YuQing 564facf33e INSTALL changed for 1.0.87 2026-08-24 15:21:41 +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
3 changed files with 3 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.86
cd libfastcommon; git checkout V1.0.87
./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:

View File

@ -3283,6 +3283,7 @@ static int format_bytes_string(const int64_t input_bytes,
}
p = buff + fc_itoa(n, buff);
}
return p - buff;
}