Support for FreeBSD

This commit is contained in:
Hajimu UMEMOTO
2016-05-16 14:46:39 +09:00
parent 3a35dee94f
commit a359d1bbd4
10 changed files with 18 additions and 9 deletions

View File

@@ -10,6 +10,8 @@ all: $(LIBNAME) libnethogs.a
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
LDFLAGS:= -shared -Wl,-soname,$(SO_NAME)
else ($(UNAME_S),FreeBSD)
LDFLAGS:= -shared -Wl,-soname,$(SO_NAME)
else
LDFLAGS:= -shared -Wl,-install_name,$(SO_NAME)
endif