Skip to content

Commit

Permalink
update Makefile to adjust link order.
Browse files Browse the repository at this point in the history
  • Loading branch information
forhappy committed Apr 15, 2013
1 parent 96f0435 commit 606a32d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -9,8 +9,6 @@ INSTALL_PATH = `pkg-config lua5.1 --variable=INSTALL_CMOD`
OS_NAME = $(shell uname -s)
MH_NAME = $(shell uname -m)

LDFLAGS += -lm -ldl -lpthread -L$(ZOOKEEPER_LIB_DIR) -lzookeeper_mt

ifeq ($(OS_NAME), Darwin)
LDFLAGS += -bundle -undefined dynamic_lookup -framework CoreServices
ifeq ($(MH_NAME), x86_64)
Expand All @@ -19,6 +17,8 @@ else
LDFLAGS += -shared -lrt
endif

LDFLAGS += -lm -ldl -lpthread -L$(ZOOKEEPER_LIB_DIR) -lzookeeper_mt

SRCS := zklua.c

OBJS := $(patsubst %.c,%.o,$(SRCS))
Expand Down

0 comments on commit 606a32d

Please sign in to comment.