changeset 5028:5bf0eb7c560c

7150392: Linux build breaks with GCC 4.7 due to unrecognized option Summary: Remove -mimpure-text option. Reviewed-by: ohair, dholmes, phh, andrew Contributed-by: Deepak Bhole <dbhole@redhat.com>
author andrew
date Thu, 08 Mar 2012 14:04:44 +0000
parents f35dfb4114e7
children 7647f9201e31 76306dce8710
files make/common/shared/Compiler-gcc.gmk src/share/demo/jvmti/compiledMethodLoad/sample.makefile.txt src/share/demo/jvmti/gctest/sample.makefile.txt src/share/demo/jvmti/heapTracker/sample.makefile.txt src/share/demo/jvmti/heapViewer/sample.makefile.txt src/share/demo/jvmti/hprof/sample.makefile.txt src/share/demo/jvmti/index.html src/share/demo/jvmti/java_crw_demo/sample.makefile.txt src/share/demo/jvmti/minst/sample.makefile.txt src/share/demo/jvmti/mtrace/sample.makefile.txt src/share/demo/jvmti/versionCheck/sample.makefile.txt src/share/demo/jvmti/waiters/sample.makefile.txt
diffstat 12 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/make/common/shared/Compiler-gcc.gmk	Tue May 22 17:54:46 2012 +0100
+++ b/make/common/shared/Compiler-gcc.gmk	Thu Mar 08 14:04:44 2012 +0000
@@ -67,7 +67,7 @@
     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
--- a/src/share/demo/jvmti/compiledMethodLoad/sample.makefile.txt	Tue May 22 17:54:46 2012 +0100
+++ b/src/share/demo/jvmti/compiledMethodLoad/sample.makefile.txt	Thu Mar 08 14:04:44 2012 +0000
@@ -90,7 +90,7 @@
     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
--- a/src/share/demo/jvmti/gctest/sample.makefile.txt	Tue May 22 17:54:46 2012 +0100
+++ b/src/share/demo/jvmti/gctest/sample.makefile.txt	Thu Mar 08 14:04:44 2012 +0000
@@ -90,7 +90,7 @@
     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
--- a/src/share/demo/jvmti/heapTracker/sample.makefile.txt	Tue May 22 17:54:46 2012 +0100
+++ b/src/share/demo/jvmti/heapTracker/sample.makefile.txt	Thu Mar 08 14:04:44 2012 +0000
@@ -94,7 +94,7 @@
     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
--- a/src/share/demo/jvmti/heapViewer/sample.makefile.txt	Tue May 22 17:54:46 2012 +0100
+++ b/src/share/demo/jvmti/heapViewer/sample.makefile.txt	Thu Mar 08 14:04:44 2012 +0000
@@ -90,7 +90,7 @@
     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
--- a/src/share/demo/jvmti/hprof/sample.makefile.txt	Tue May 22 17:54:46 2012 +0100
+++ b/src/share/demo/jvmti/hprof/sample.makefile.txt	Thu Mar 08 14:04:44 2012 +0000
@@ -130,7 +130,7 @@
     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
--- a/src/share/demo/jvmti/index.html	Tue May 22 17:54:46 2012 +0100
+++ b/src/share/demo/jvmti/index.html	Thu Mar 08 14:04:44 2012 +0000
@@ -308,7 +308,7 @@
 <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 @@
 <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 @@
 </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
--- a/src/share/demo/jvmti/java_crw_demo/sample.makefile.txt	Tue May 22 17:54:46 2012 +0100
+++ b/src/share/demo/jvmti/java_crw_demo/sample.makefile.txt	Thu Mar 08 14:04:44 2012 +0000
@@ -90,7 +90,7 @@
     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
--- a/src/share/demo/jvmti/minst/sample.makefile.txt	Tue May 22 17:54:46 2012 +0100
+++ b/src/share/demo/jvmti/minst/sample.makefile.txt	Thu Mar 08 14:04:44 2012 +0000
@@ -94,7 +94,7 @@
     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
--- a/src/share/demo/jvmti/mtrace/sample.makefile.txt	Tue May 22 17:54:46 2012 +0100
+++ b/src/share/demo/jvmti/mtrace/sample.makefile.txt	Thu Mar 08 14:04:44 2012 +0000
@@ -94,7 +94,7 @@
     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
--- a/src/share/demo/jvmti/versionCheck/sample.makefile.txt	Tue May 22 17:54:46 2012 +0100
+++ b/src/share/demo/jvmti/versionCheck/sample.makefile.txt	Thu Mar 08 14:04:44 2012 +0000
@@ -90,7 +90,7 @@
     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
--- a/src/share/demo/jvmti/waiters/sample.makefile.txt	Tue May 22 17:54:46 2012 +0100
+++ b/src/share/demo/jvmti/waiters/sample.makefile.txt	Thu Mar 08 14:04:44 2012 +0000
@@ -91,7 +91,7 @@
     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