mirror of
https://github.com/corda/corda.git
synced 2025-01-04 04:04:27 +00:00
Got strip working for Mac OS X
This commit is contained in:
parent
625f0006c9
commit
eb3bd1ce7c
@ -5,12 +5,8 @@
|
|||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
# define JNIEXPORT __declspec(dllexport)
|
# define JNIEXPORT __declspec(dllexport)
|
||||||
#else
|
#else
|
||||||
#ifdef __APPLE__
|
|
||||||
# define JNIEXPORT __attribute__ ((used))
|
|
||||||
#else
|
|
||||||
# define JNIEXPORT __attribute__ ((visibility("default")))
|
# define JNIEXPORT __attribute__ ((visibility("default")))
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
4
makefile
4
makefile
@ -82,7 +82,7 @@ ifeq ($(platform),darwin)
|
|||||||
build-cflags = $(common-cflags) -fPIC -fvisibility=hidden \
|
build-cflags = $(common-cflags) -fPIC -fvisibility=hidden \
|
||||||
-I$(JAVA_HOME)/include/linux -I$(src)
|
-I$(JAVA_HOME)/include/linux -I$(src)
|
||||||
lflags = $(common-lflags) -ldl
|
lflags = $(common-lflags) -ldl
|
||||||
strip-all =
|
strip-all = -S -x
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(platform),windows)
|
ifeq ($(platform),windows)
|
||||||
@ -328,7 +328,7 @@ ifeq ($(platform),windows)
|
|||||||
else
|
else
|
||||||
$(cc) $(^) $(lflags) -o $(@)
|
$(cc) $(^) $(lflags) -o $(@)
|
||||||
endif
|
endif
|
||||||
@$(strip) $(strip-all) $(@)
|
$(strip) $(strip-all) $(@)
|
||||||
@$(show-size) $(@)
|
@$(show-size) $(@)
|
||||||
|
|
||||||
$(generator): $(generator-objects)
|
$(generator): $(generator-objects)
|
||||||
|
@ -14,12 +14,8 @@
|
|||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
# define JNIEXPORT __declspec(dllexport)
|
# define JNIEXPORT __declspec(dllexport)
|
||||||
#else
|
#else
|
||||||
#ifdef __APPLE__
|
|
||||||
# define JNIEXPORT __attribute__ ((used))
|
|
||||||
#else
|
|
||||||
# define JNIEXPORT __attribute__ ((visibility("default")))
|
# define JNIEXPORT __attribute__ ((visibility("default")))
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
# define LD "d"
|
# define LD "d"
|
||||||
|
Loading…
Reference in New Issue
Block a user