Merge
This commit is contained in:
commit
69aa6d19c3
@ -67,7 +67,7 @@ ifeq ($(PLATFORM), linux)
|
||||
CXX = $(COMPILER_PATH)g++
|
||||
endif
|
||||
# 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 )
|
||||
|
||||
endif
|
||||
|
@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux)
|
||||
OBJECTS=$(SOURCES:%.c=%.o)
|
||||
# Library name and options needed to build it
|
||||
LIBRARY=lib$(LIBNAME).so
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
|
||||
# Libraries we are dependent on
|
||||
LIBRARIES=-lc
|
||||
# Building a shared library
|
||||
|
@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux)
|
||||
OBJECTS=$(SOURCES:%.c=%.o)
|
||||
# Library name and options needed to build it
|
||||
LIBRARY=lib$(LIBNAME).so
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
|
||||
# Libraries we are dependent on
|
||||
LIBRARIES=-lc
|
||||
# Building a shared library
|
||||
|
@ -94,7 +94,7 @@ ifeq ($(OSNAME), linux)
|
||||
OBJECTS=$(SOURCES:%.c=%.o)
|
||||
# Library name and options needed to build it
|
||||
LIBRARY=lib$(LIBNAME).so
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
|
||||
# Libraries we are dependent on
|
||||
LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc
|
||||
# Building a shared library
|
||||
|
@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux)
|
||||
OBJECTS=$(SOURCES:%.c=%.o)
|
||||
# Library name and options needed to build it
|
||||
LIBRARY=lib$(LIBNAME).so
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
|
||||
# Libraries we are dependent on
|
||||
LIBRARIES=-lc
|
||||
# Building a shared library
|
||||
|
@ -130,7 +130,7 @@ ifeq ($(OSNAME), linux)
|
||||
OBJECTS=$(SOURCES:%.c=%.o)
|
||||
# Library name and options needed to build it
|
||||
LIBRARY=lib$(LIBNAME).so
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
|
||||
# Libraries we are dependent on
|
||||
LIBRARIES= -ldl -lc
|
||||
# Building a shared library
|
||||
|
@ -308,7 +308,7 @@ For X86:
|
||||
<code><ul>
|
||||
gcc -O2 -fPIC -pthread -DLINUX -c <i>*.c</i>
|
||||
<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>
|
||||
<br>
|
||||
For AMD64:
|
||||
@ -316,7 +316,7 @@ For AMD64:
|
||||
<code><ul>
|
||||
gcc -O2 -fPIC -pthread -DLINUX -D_LP64=1 -c <i>*.c</i>
|
||||
<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>
|
||||
<br>
|
||||
</li>
|
||||
@ -339,7 +339,7 @@ option.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Library: Use -static-libgcc -mimpure-text.
|
||||
Library: Use -static-libgcc.
|
||||
<br>
|
||||
When building the shared library (-shared option), this option
|
||||
allows for maximum portability of the library between different
|
||||
|
@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux)
|
||||
OBJECTS=$(SOURCES:%.c=%.o)
|
||||
# Library name and options needed to build it
|
||||
LIBRARY=lib$(LIBNAME).so
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
|
||||
# Libraries we are dependent on
|
||||
LIBRARIES=-lc
|
||||
# Building a shared library
|
||||
|
@ -94,7 +94,7 @@ ifeq ($(OSNAME), linux)
|
||||
OBJECTS=$(SOURCES:%.c=%.o)
|
||||
# Library name and options needed to build it
|
||||
LIBRARY=lib$(LIBNAME).so
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
|
||||
# Libraries we are dependent on
|
||||
LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc
|
||||
# Building a shared library
|
||||
|
@ -94,7 +94,7 @@ ifeq ($(OSNAME), linux)
|
||||
OBJECTS=$(SOURCES:%.c=%.o)
|
||||
# Library name and options needed to build it
|
||||
LIBRARY=lib$(LIBNAME).so
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
|
||||
# Libraries we are dependent on
|
||||
LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc
|
||||
# Building a shared library
|
||||
|
@ -90,7 +90,7 @@ ifeq ($(OSNAME), linux)
|
||||
OBJECTS=$(SOURCES:%.c=%.o)
|
||||
# Library name and options needed to build it
|
||||
LIBRARY=lib$(LIBNAME).so
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
|
||||
# Libraries we are dependent on
|
||||
LIBRARIES=-lc
|
||||
# Building a shared library
|
||||
|
@ -91,7 +91,7 @@ ifeq ($(OSNAME), linux)
|
||||
OBJECTS=$(SOURCES:%.cpp=%.o)
|
||||
# Library name and options needed to build it
|
||||
LIBRARY=lib$(LIBNAME).so
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
|
||||
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
|
||||
# Libraries we are dependent on
|
||||
LIBRARIES=
|
||||
# Building a shared library
|
||||
|
Loading…
Reference in New Issue
Block a user