openresty / lua-resty-balancer

A generic consistent hash implementation for OpenResty/Lua
322 stars 77 forks source link

bug: not support mac os, dynamic library name is wrong #27

Closed membphis closed 3 years ago

membphis commented 5 years ago

image

membphis commented 5 years ago

https://github.com/openresty/lua-resty-balancer/blob/master/Makefile#L18

UNAME ?= $(shell uname)

ifeq ($(UNAME),Darwin)
    LDFLAGS := -bundle -undefined dynamic_lookup
    C_SO_NAME := librestychash.dylib
endif