Fix compilation issues under clang

clang defaults to c99 so remove inline statements
(http://clang.llvm.org/compatibility.html#inline ) on functions shared
across different translation units.
clang's linker doesn't like major numbers over 255 so change how SOREL
is generated in Makefile.am.
This commit is contained in:
Sitsofe Wheeler
2013-09-07 00:17:48 +01:00
parent 45a3752d16
commit 7692027d6c
5 changed files with 29 additions and 26 deletions

View File

@@ -43,9 +43,12 @@ lib_libiscsi_la_SOURCES += lib/md5.c
endif
SONAME=3
SOREL=$(shell printf "%d%02d%02d" $(subst ., ,$(VERSION)))
SOMAJOR = $(firstword $(version_split))
SOMINOR = $(word 2, $(version_split))
SOREVISION = $(word 3, $(version_split))
SOREL = $(shell echo $(SOMINOR) + $(SOREVISION))
lib_libiscsi_la_LDFLAGS = \
-version-info $(SONAME):$(SOREL):0 -bindir $(bindir) -no-undefined \
-version-info $(SONAME):$(SOMAJOR):$(SOREL) -bindir $(bindir) -no-undefined \
-export-symbols $(srcdir)/lib/libiscsi.syms
# libiscsi utilities