提交 04278fe7 编写于 作者: M mfang

Merge

...@@ -151,3 +151,4 @@ ec17fbe5b8fbc52da070eec43b4711d9354b2ab8 jdk8-b25 ...@@ -151,3 +151,4 @@ ec17fbe5b8fbc52da070eec43b4711d9354b2ab8 jdk8-b25
c68342532e2e7deb3a25fc04ed3e4c142278f747 jdk8-b27 c68342532e2e7deb3a25fc04ed3e4c142278f747 jdk8-b27
1e1d41daaded291ab3a370ca6a27f7325701978e jdk8-b28 1e1d41daaded291ab3a370ca6a27f7325701978e jdk8-b28
c5b882dce0fe27e05dc64debc92b1fb9ebf880ec jdk8-b29 c5b882dce0fe27e05dc64debc92b1fb9ebf880ec jdk8-b29
cdbb33303ea344d5e9013e2dd642e7a6e7768db6 jdk8-b30
...@@ -67,7 +67,7 @@ ifeq ($(PLATFORM), linux) ...@@ -67,7 +67,7 @@ ifeq ($(PLATFORM), linux)
CXX = $(COMPILER_PATH)g++ CXX = $(COMPILER_PATH)g++
endif endif
# Option used to create a shared library # Option used to create a shared library
SHARED_LIBRARY_FLAG = -shared -mimpure-text SHARED_LIBRARY_FLAG = -shared
SUN_COMP_VER := $(shell $(CC) --verbose 2>&1 ) SUN_COMP_VER := $(shell $(CC) --verbose 2>&1 )
endif endif
......
...@@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux) ...@@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux)
OBJECTS=$(SOURCES:%.c=%.o) OBJECTS=$(SOURCES:%.c=%.o)
# Library name and options needed to build it # Library name and options needed to build it
LIBRARY=lib$(LIBNAME).so LIBRARY=lib$(LIBNAME).so
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
# Libraries we are dependent on # Libraries we are dependent on
LIBRARIES=-lc LIBRARIES=-lc
# Building a shared library # Building a shared library
......
...@@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux) ...@@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux)
OBJECTS=$(SOURCES:%.c=%.o) OBJECTS=$(SOURCES:%.c=%.o)
# Library name and options needed to build it # Library name and options needed to build it
LIBRARY=lib$(LIBNAME).so LIBRARY=lib$(LIBNAME).so
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
# Libraries we are dependent on # Libraries we are dependent on
LIBRARIES=-lc LIBRARIES=-lc
# Building a shared library # Building a shared library
......
...@@ -94,7 +94,7 @@ ifeq ($(OSNAME), linux) ...@@ -94,7 +94,7 @@ ifeq ($(OSNAME), linux)
OBJECTS=$(SOURCES:%.c=%.o) OBJECTS=$(SOURCES:%.c=%.o)
# Library name and options needed to build it # Library name and options needed to build it
LIBRARY=lib$(LIBNAME).so LIBRARY=lib$(LIBNAME).so
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
# Libraries we are dependent on # Libraries we are dependent on
LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc
# Building a shared library # Building a shared library
......
...@@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux) ...@@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux)
OBJECTS=$(SOURCES:%.c=%.o) OBJECTS=$(SOURCES:%.c=%.o)
# Library name and options needed to build it # Library name and options needed to build it
LIBRARY=lib$(LIBNAME).so LIBRARY=lib$(LIBNAME).so
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
# Libraries we are dependent on # Libraries we are dependent on
LIBRARIES=-lc LIBRARIES=-lc
# Building a shared library # Building a shared library
......
...@@ -130,7 +130,7 @@ ifeq ($(OSNAME), linux) ...@@ -130,7 +130,7 @@ ifeq ($(OSNAME), linux)
OBJECTS=$(SOURCES:%.c=%.o) OBJECTS=$(SOURCES:%.c=%.o)
# Library name and options needed to build it # Library name and options needed to build it
LIBRARY=lib$(LIBNAME).so LIBRARY=lib$(LIBNAME).so
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
# Libraries we are dependent on # Libraries we are dependent on
LIBRARIES= -ldl -lc LIBRARIES= -ldl -lc
# Building a shared library # Building a shared library
......
...@@ -308,7 +308,7 @@ For X86: ...@@ -308,7 +308,7 @@ For X86:
<code><ul> <code><ul>
gcc -O2 -fPIC -pthread -DLINUX -c <i>*.c</i> gcc -O2 -fPIC -pthread -DLINUX -c <i>*.c</i>
<br> <br>
gcc -z defs -static-libgcc -shared -mimpure-text -o <i>libXXX.so *.o</i> -lc gcc -z defs -static-libgcc -shared -o <i>libXXX.so *.o</i> -lc
</code></ul> </code></ul>
<br> <br>
For AMD64: For AMD64:
...@@ -316,7 +316,7 @@ For AMD64: ...@@ -316,7 +316,7 @@ For AMD64:
<code><ul> <code><ul>
gcc -O2 -fPIC -pthread -DLINUX -D_LP64=1 -c <i>*.c</i> gcc -O2 -fPIC -pthread -DLINUX -D_LP64=1 -c <i>*.c</i>
<br> <br>
gcc -z defs -static-libgcc -shared -mimpure-text -o <i>libXXX.so *.o</i> -lc gcc -z defs -static-libgcc -shared -o <i>libXXX.so *.o</i> -lc
</code></ul> </code></ul>
<br> <br>
</li> </li>
...@@ -339,7 +339,7 @@ option. ...@@ -339,7 +339,7 @@ option.
</li> </li>
<li> <li>
Library: Use -static-libgcc -mimpure-text. Library: Use -static-libgcc.
<br> <br>
When building the shared library (-shared option), this option When building the shared library (-shared option), this option
allows for maximum portability of the library between different allows for maximum portability of the library between different
......
...@@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux) ...@@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux)
OBJECTS=$(SOURCES:%.c=%.o) OBJECTS=$(SOURCES:%.c=%.o)
# Library name and options needed to build it # Library name and options needed to build it
LIBRARY=lib$(LIBNAME).so LIBRARY=lib$(LIBNAME).so
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
# Libraries we are dependent on # Libraries we are dependent on
LIBRARIES=-lc LIBRARIES=-lc
# Building a shared library # Building a shared library
......
...@@ -94,7 +94,7 @@ ifeq ($(OSNAME), linux) ...@@ -94,7 +94,7 @@ ifeq ($(OSNAME), linux)
OBJECTS=$(SOURCES:%.c=%.o) OBJECTS=$(SOURCES:%.c=%.o)
# Library name and options needed to build it # Library name and options needed to build it
LIBRARY=lib$(LIBNAME).so LIBRARY=lib$(LIBNAME).so
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
# Libraries we are dependent on # Libraries we are dependent on
LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc
# Building a shared library # Building a shared library
......
...@@ -94,7 +94,7 @@ ifeq ($(OSNAME), linux) ...@@ -94,7 +94,7 @@ ifeq ($(OSNAME), linux)
OBJECTS=$(SOURCES:%.c=%.o) OBJECTS=$(SOURCES:%.c=%.o)
# Library name and options needed to build it # Library name and options needed to build it
LIBRARY=lib$(LIBNAME).so LIBRARY=lib$(LIBNAME).so
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
# Libraries we are dependent on # Libraries we are dependent on
LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc
# Building a shared library # Building a shared library
......
...@@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux) ...@@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux)
OBJECTS=$(SOURCES:%.c=%.o) OBJECTS=$(SOURCES:%.c=%.o)
# Library name and options needed to build it # Library name and options needed to build it
LIBRARY=lib$(LIBNAME).so LIBRARY=lib$(LIBNAME).so
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
# Libraries we are dependent on # Libraries we are dependent on
LIBRARIES=-lc LIBRARIES=-lc
# Building a shared library # Building a shared library
......
...@@ -91,7 +91,7 @@ ifeq ($(OSNAME), linux) ...@@ -91,7 +91,7 @@ ifeq ($(OSNAME), linux)
OBJECTS=$(SOURCES:%.cpp=%.o) OBJECTS=$(SOURCES:%.cpp=%.o)
# Library name and options needed to build it # Library name and options needed to build it
LIBRARY=lib$(LIBNAME).so LIBRARY=lib$(LIBNAME).so
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
# Libraries we are dependent on # Libraries we are dependent on
LIBRARIES= LIBRARIES=
# Building a shared library # Building a shared library
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册