mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
fix OS X build
This commit is contained in:
parent
580e7e1b3f
commit
8ca5e9780e
13
makefile
13
makefile
@ -141,6 +141,10 @@ build-lflags = -lz -lpthread -ldl
|
||||
|
||||
lflags = $(common-lflags) -lpthread -ldl
|
||||
|
||||
version-script-flag = -Wl,--version-script=openjdk.ld
|
||||
|
||||
jvm-flags = -L$(build) -ljvm
|
||||
|
||||
build-system = posix
|
||||
|
||||
system = posix
|
||||
@ -168,7 +172,10 @@ ifeq ($(arch),arm)
|
||||
endif
|
||||
|
||||
ifeq ($(platform),darwin)
|
||||
version-script-flag =
|
||||
jvm-flags = $(build)/libjvm.jnilib
|
||||
build-cflags = $(common-cflags) -fPIC -fvisibility=hidden -I$(src)
|
||||
build-lflags += -framework CoreFoundation
|
||||
lflags = $(common-lflags) -ldl -framework CoreFoundation -framework CoreServices
|
||||
ifeq ($(bootimage),true)
|
||||
bootimage-lflags = -Wl,-segprot,__RWX,rwx,rwx
|
||||
@ -736,8 +743,8 @@ ifdef msvc
|
||||
-IMPLIB:$(build)/$(name).lib -MANIFESTFILE:$(@).manifest
|
||||
$(mt) -manifest $(@).manifest -outputresource:"$(@);2"
|
||||
else
|
||||
$(ld) $(^) -Wl,--version-script=openjdk.ld \
|
||||
$(shared) $(lflags) $(bootimage-lflags) -o $(@)
|
||||
$(ld) $(^) $(version-script-flag) $(shared) $(lflags) $(bootimage-lflags) \
|
||||
-o $(@)
|
||||
endif
|
||||
$(strip) $(strip-all) $(@)
|
||||
|
||||
@ -748,7 +755,7 @@ ifdef msvc
|
||||
-PDB:$(@).pdb -IMPLIB:$(@).lib $(<) -out:$(@) -MANIFESTFILE:$(@).manifest
|
||||
$(mt) -manifest $(@).manifest -outputresource:"$(@);1"
|
||||
else
|
||||
$(ld) $(<) -L$(build) -ljvm $(lflags) -o $(@)
|
||||
$(ld) $(<) $(jvm-flags) $(lflags) -o $(@)
|
||||
endif
|
||||
$(strip) $(strip-all) $(@)
|
||||
|
||||
|
@ -8,14 +8,14 @@
|
||||
There is NO WARRANTY for this software. See license.txt for
|
||||
details. */
|
||||
|
||||
#define __STDC_CONSTANT_MACROS
|
||||
|
||||
#ifdef __APPLE__
|
||||
# include "CoreFoundation/CoreFoundation.h"
|
||||
# undef assert
|
||||
# define _XOPEN_SOURCE
|
||||
#endif
|
||||
|
||||
#define __STDC_CONSTANT_MACROS
|
||||
|
||||
#include "sys/mman.h"
|
||||
#include "sys/types.h"
|
||||
#include "sys/stat.h"
|
||||
|
Loading…
Reference in New Issue
Block a user