Got strip working for Mac OS X

This commit is contained in:
Eric Scharff 2007-11-01 14:37:51 -06:00
parent 625f0006c9
commit eb3bd1ce7c
3 changed files with 2 additions and 10 deletions

View File

@ -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 {

View File

@ -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)

View File

@ -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"