Skip to content

Commit 0438d74

Browse files
committed
bindings/java/build.sh: revert previous modification.
1 parent d7ab1f0 commit 0438d74

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

bindings/java/Android.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ $(LOCAL_PATH)/blst/src/server.c $(LOCAL_PATH)/blst/build/assembly.S: $(LOCAL_PAT
2828
$(LOCAL_PATH)/blst_wrap.cpp: $(LOCAL_PATH)/blst/bindings/blst.swg
2929
blst_classes=`dirname $@`/../src/supranational/blst && \
3030
mkdir -p $$blst_classes && \
31-
swig -c++ -java -package supranational.blst -outdir $$blst_classes -D__BLST_BYTES_T__ -o $@ $<
31+
swig -c++ -java -package supranational.blst -outdir $$blst_classes -o $@ $<
3232

3333
LOCAL_CFLAGS := -fno-builtin-memcpy -fvisibility=hidden
34-
LOCAL_CPPFLAGS := -fexceptions -I$(LOCAL_PATH)/blst/bindings -D__BLST_BYTES_T__
34+
LOCAL_CPPFLAGS := -fexceptions -I$(LOCAL_PATH)/blst/bindings
3535
LOCAL_LDFLAGS := -Wl,-Bsymbolic
3636

3737
include $(BUILD_SHARED_LIBRARY)

bindings/java/build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if [ ! -f blst_wrap.cpp -o "$TOP"/blst.swg -nt blst_wrap.cpp \
4545
-o "$TOP"/blst.h -nt blst_wrap.cpp \
4646
-o ! -f $PKG/blst.java ]; then
4747
(set -x; swig -c++ -java -package $JAVA_PACKAGE -outdir $PKG \
48-
-D__BLST_BYTES_T__ -o blst_wrap.cpp "$TOP"/blst.swg)
48+
-o blst_wrap.cpp "$TOP"/blst.swg)
4949
fi
5050

5151
if [ ! -f $PKG/blst.class -o $PKG/blst.java -nt $PKG/blst.class ]; then
@@ -77,7 +77,6 @@ if [ ! -f $SO_NAME -o blst_wrap.cpp -nt $SO_NAME \
7777
awk '{ if($2=="__cplusplus" && $3<"2011") print "-std=c++11"; }'`
7878
(set -x; ${CXX} ${STD} -shared -o $SO_NAME -fPIC -fvisibility=hidden \
7979
-I"$JAVA_HOME"/include -I"$JNI_MD" -I"$TOP" \
80-
-D__BLST_BYTES_T__ \
8180
-O -Wall -Wno-unused-function blst_wrap.cpp \
8281
$LIBBLST_A ${LDFLAGS})
8382
fi

0 commit comments

Comments
 (0)