ibmi: support Makefile build for IBM i
libuv can only be compiled using node-gyp on IBM i. This commit allows it compiled with autoconf & automake. PR-URL: https://github.com/libuv/libuv/pull/2379 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
parent
f5ca3e868c
commit
8ff0cd70c6
19
Makefile.am
19
Makefile.am
@ -324,6 +324,12 @@ test_run_tests_CFLAGS += -D_ALL_SOURCE \
|
|||||||
-D_LINUX_SOURCE_COMPAT
|
-D_LINUX_SOURCE_COMPAT
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if OS400
|
||||||
|
test_run_tests_CFLAGS += -D_ALL_SOURCE \
|
||||||
|
-D_XOPEN_SOURCE=500 \
|
||||||
|
-D_LINUX_SOURCE_COMPAT
|
||||||
|
endif
|
||||||
|
|
||||||
if HAIKU
|
if HAIKU
|
||||||
test_run_tests_CFLAGS += -D_BSD_SOURCE
|
test_run_tests_CFLAGS += -D_BSD_SOURCE
|
||||||
endif
|
endif
|
||||||
@ -364,6 +370,19 @@ uvinclude_HEADERS += include/uv/aix.h
|
|||||||
libuv_la_SOURCES += src/unix/aix.c src/unix/aix-common.c
|
libuv_la_SOURCES += src/unix/aix.c src/unix/aix-common.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if OS400
|
||||||
|
libuv_la_CFLAGS += -D_ALL_SOURCE \
|
||||||
|
-D_XOPEN_SOURCE=500 \
|
||||||
|
-D_LINUX_SOURCE_COMPAT \
|
||||||
|
-D_THREAD_SAFE
|
||||||
|
uvinclude_HEADERS += include/uv/posix.h
|
||||||
|
libuv_la_SOURCES += src/unix/aix-common.c \
|
||||||
|
src/unix/ibmi.c \
|
||||||
|
src/unix/posix-poll.c \
|
||||||
|
src/unix/no-fsevents.c \
|
||||||
|
src/unix/no-proctitle.c
|
||||||
|
endif
|
||||||
|
|
||||||
if ANDROID
|
if ANDROID
|
||||||
uvinclude_HEADERS += include/uv/android-ifaddrs.h
|
uvinclude_HEADERS += include/uv/android-ifaddrs.h
|
||||||
libuv_la_SOURCES += src/unix/android-ifaddrs.c \
|
libuv_la_SOURCES += src/unix/android-ifaddrs.c \
|
||||||
|
|||||||
@ -63,6 +63,7 @@ AM_CONDITIONAL([MSYS], [AS_CASE([$host_os],[msys*], [true], [false])
|
|||||||
AM_CONDITIONAL([NETBSD], [AS_CASE([$host_os],[netbsd*], [true], [false])])
|
AM_CONDITIONAL([NETBSD], [AS_CASE([$host_os],[netbsd*], [true], [false])])
|
||||||
AM_CONDITIONAL([OPENBSD], [AS_CASE([$host_os],[openbsd*], [true], [false])])
|
AM_CONDITIONAL([OPENBSD], [AS_CASE([$host_os],[openbsd*], [true], [false])])
|
||||||
AM_CONDITIONAL([OS390], [AS_CASE([$host_os],[openedition*], [true], [false])])
|
AM_CONDITIONAL([OS390], [AS_CASE([$host_os],[openedition*], [true], [false])])
|
||||||
|
AM_CONDITIONAL([OS400], [AS_CASE([$host_os],[os400], [true], [false])])
|
||||||
AM_CONDITIONAL([SUNOS], [AS_CASE([$host_os],[solaris*], [true], [false])])
|
AM_CONDITIONAL([SUNOS], [AS_CASE([$host_os],[solaris*], [true], [false])])
|
||||||
AM_CONDITIONAL([WINNT], [AS_CASE([$host_os],[mingw*], [true], [false])])
|
AM_CONDITIONAL([WINNT], [AS_CASE([$host_os],[mingw*], [true], [false])])
|
||||||
AS_CASE([$host_os],[mingw*], [
|
AS_CASE([$host_os],[mingw*], [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user