mirror of
https://github.com/xerial/snappy-java.git
synced 2025-04-08 19:35:08 +02:00
Trying to build static snappy native library for amd64
This commit is contained in:
parent
bb83928f65
commit
d1a9a71ee3
2
Makefile
2
Makefile
@ -42,7 +42,7 @@ $(SNAPPY_OUT)/SnappyNative.o : $(SRC)/org/xerial/snappy/SnappyNative.cpp $(SRC)/
|
||||
|
||||
|
||||
$(SNAPPY_OUT)/$(LIBNAME): $(SNAPPY_OBJ)
|
||||
$(CXX) $(CXXFLAGS) $(LINKFLAGS) $+ -o $@
|
||||
$(CXX) $(CXXFLAGS) -o $@ $+ $(LINKFLAGS)
|
||||
$(STRIP) $@
|
||||
|
||||
clean-native:
|
||||
|
@ -65,7 +65,7 @@ Linux-i386_SNAPPY_FLAGS:=
|
||||
Linux-amd64_CXX := g++
|
||||
Linux-amd64_STRIP := strip
|
||||
Linux-amd64_CXXFLAGS := -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC
|
||||
Linux-amd64_LINKFLAGS := -shared -static-libgcc
|
||||
Linux-amd64_LINKFLAGS := -shared -static-libstdc++ -static-libgcc -lm -lc
|
||||
Linux-amd64_LIBNAME := libsnappy.so
|
||||
Linux-amd64_SNAPPY_FLAGS :=
|
||||
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user