Skip to content
Browse files

Embed libstdc++ into Linux amd64 binary by using my own g++

  • Loading branch information...
1 parent 5894472 commit 0ee1e52ac100cbc30f91d9e5b5e5182e926db0f2 @xerial committed
2  Makefile.common
@@ -68,7 +68,7 @@ Linux-i386_SNAPPY_FLAGS:=
Linux-amd64_CXX := $(CROSS_PREFIX)g++
Linux-amd64_STRIP := $(CROSS_PREFIX)strip
Linux-amd64_CXXFLAGS := -include lib/inc_linux/jni_md.h -I$(JAVA_HOME)/include -O2 -fPIC -fvisibility=hidden -m64
-Linux-amd64_LINKFLAGS := -shared -static-libgcc #-static-libstdc++
+Linux-amd64_LINKFLAGS := -shared -static-libgcc -static-libstdc++
Linux-amd64_LIBNAME :=
Linux-amd64_SNAPPY_FLAGS :=
BIN  src/main/resources/org/xerial/snappy/native/Linux/amd64/
Binary file not shown

0 comments on commit 0ee1e52

Please sign in to comment.
Something went wrong with that request. Please try again.