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