build: fix 'out-of-tree' build
Prefix include paths with '${srcdir}' to allow 'out-of-tree' builds:
cd $BUILD
$LIBISCSI/configure
make
Signed-off-by: Chris Zankel <chris@zankel.net>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
AM_CPPFLAGS=-I. -I../include "-D_U_=__attribute__((unused))" \
|
AM_CPPFLAGS=-I. -I${srcdir}/../include "-D_U_=__attribute__((unused))" \
|
||||||
"-D_R_(A,B)=__attribute__((format(printf,A,B)))"
|
"-D_R_(A,B)=__attribute__((format(printf,A,B)))"
|
||||||
AM_CFLAGS=$(WARN_CFLAGS)
|
AM_CFLAGS=$(WARN_CFLAGS)
|
||||||
LDADD = ../lib/libiscsi.la
|
LDADD = ../lib/libiscsi.la
|
||||||
|
|||||||
+2
-2
@@ -15,9 +15,9 @@ SOREVISON=0
|
|||||||
SOAGE=1
|
SOAGE=1
|
||||||
libiscsi_la_LDFLAGS = \
|
libiscsi_la_LDFLAGS = \
|
||||||
-version-info $(SOCURRENT):$(SOREVISON):$(SOAGE) -bindir $(bindir) \
|
-version-info $(SOCURRENT):$(SOREVISON):$(SOAGE) -bindir $(bindir) \
|
||||||
-no-undefined -export-symbols libiscsi.syms
|
-no-undefined -export-symbols ${srcdir}/libiscsi.syms
|
||||||
|
|
||||||
libiscsi_la_CPPFLAGS = -I../include -I$(srcdir)/include \
|
libiscsi_la_CPPFLAGS = -I${srcdir}/../include -I$(srcdir)/include \
|
||||||
"-D_U_=__attribute__((unused))" \
|
"-D_U_=__attribute__((unused))" \
|
||||||
"-D_R_(A,B)=__attribute__((format(printf,A,B)))"
|
"-D_R_(A,B)=__attribute__((format(printf,A,B)))"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
AM_CPPFLAGS=-I. -I../include "-D_U_=__attribute__((unused))" \
|
AM_CPPFLAGS=-I. -I${srcdir}/../include \
|
||||||
|
"-D_U_=__attribute__((unused)) " \
|
||||||
"-D_R_(A,B)=__attribute__((format(printf,A,B)))"
|
"-D_R_(A,B)=__attribute__((format(printf,A,B)))"
|
||||||
AM_CFLAGS=$(WARN_CFLAGS)
|
AM_CFLAGS=$(WARN_CFLAGS)
|
||||||
LDADD = ../lib/libiscsi.la
|
LDADD = ../lib/libiscsi.la
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
AM_CPPFLAGS = -I../include "-D_U_=__attribute__((unused))" \
|
AM_CPPFLAGS = -I${srcdir}/../include "-D_U_=__attribute__((unused))" \
|
||||||
"-D_R_(A,B)=__attribute__((format(printf,A,B)))"
|
"-D_R_(A,B)=__attribute__((format(printf,A,B)))"
|
||||||
AM_CFLAGS = $(WARN_CFLAGS)
|
AM_CFLAGS = $(WARN_CFLAGS)
|
||||||
LDADD = ../lib/libiscsi.la
|
LDADD = ../lib/libiscsi.la
|
||||||
|
|||||||
Reference in New Issue
Block a user