File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -58,4 +58,3 @@ Compiling from source
58
58
---------------------
59
59
60
60
To build, simply type "make" in the libxenserver/src directory.
61
- To build on Windows with cygwin type "make CYGWIN=1".
Original file line number Diff line number Diff line change 29
29
30
30
DESTDIR=/usr/local
31
31
32
- ifeq ($(CYGWIN), 1)
32
+ UNAME_S := $(shell uname -s)
33
+
34
+ ifeq ($(findstring CYGWIN,$(UNAME_S)),CYGWIN)
33
35
CYGWIN_LIBXML = -L/bin -lxml2-2
34
36
POS_FLAG = -U__STRICT_ANSI__
35
37
else
@@ -80,7 +82,7 @@ install: build
80
82
$(INSTALL_DATA) libxenserver.so.{ {API_VERSION_MAJOR} }.{ {API_VERSION_MINOR} } $(DESTDIR)/lib
81
83
ln -sf libxenserver.so.{ {API_VERSION_MAJOR} }.{ {API_VERSION_MINOR} } $(DESTDIR)/lib/libxenserver.so.{ {API_VERSION_MAJOR} }
82
84
ln -sf libxenserver.so.{ {API_VERSION_MAJOR} } $(DESTDIR)/lib/libxenserver.so
83
- ifeq ($(CYGWIN), 1 )
85
+ ifeq ($(findstring CYGWIN,$(UNAME_S)),CYGWIN )
84
86
ln -sf libxenserver.so $(DESTDIR)/lib/libxenserver.dll
85
87
endif
86
88
$(INSTALL_DATA) libxenserver.a $(DESTDIR)/lib
You can’t perform that action at this time.
0 commit comments