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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user