Permalink
Browse files

compile: add -pthread when make libzlog.so, to save -pthread when zlo…

…g is linked to programs
  • Loading branch information...
HardySimpson committed Feb 21, 2013
1 parent ec86c2b commit 8709a8cb8dcd037782056f84fc7ee92fe7e68b8d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/makefile
View
@@ -120,7 +120,7 @@ zlog.o: zlog.c fmacros.h conf.h zc_defs.h zc_profile.h zc_arraylist.h \
record.h rule.h
$(DYLIBNAME): $(OBJ)
- $(DYLIB_MAKE_CMD) $(OBJ)
+ $(DYLIB_MAKE_CMD) $(OBJ) $(REAL_LDFLAGS)
# for use in test folder - linux and requirement for aix runtime
# resolving
cp -f $(DYLIBNAME) $(DYLIB_MAJOR_NAME)
@@ -134,7 +134,7 @@ static: $(STLIBNAME)
# Binaries:
zlog-chk-conf: zlog-chk-conf.o $(STLIBNAME) $(DYLIBNAME)
- $(CC) -o $@ $(REAL_CFLAGS) zlog-chk-conf.o -L. -lzlog $(REAL_LDFLAGS)
+ $(CC) -o $@ zlog-chk-conf.o -L. -lzlog $(REAL_LDFLAGS)
.c.o:
$(CC) -std=c99 -pedantic -c $(REAL_CFLAGS) $<

0 comments on commit 8709a8c

Please sign in to comment.