make/aix/makefiles/xlc.make

Print this page
rev 7547 : 8067923: AIX: link libjvm.so with -bernotok to detect missing symbols at build time and suppress warning 1540-1639


 107 OPT_CFLAGS += -qalias=noansi
 108 
 109 OPT_CFLAGS/NOOPT=-qnoopt
 110 
 111 DEPFLAGS = -qmakedep=gcc -MF $(DEP_DIR)/$(@:%=%.d)
 112 
 113 #------------------------------------------------------------------------
 114 # Linker flags
 115 
 116 # statically link libstdc++.so, work with gcc but ignored by g++
 117 STATIC_STDCXX = -Wl,-lC_r
 118 
 119 # Enable linker optimization
 120 # no counterpart on xlc for this 
 121 # LFLAGS += -Xlinker -O1
 122 
 123 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
 124 # MAPFLAG = -Xlinker --version-script=FILENAME
 125 
 126 # Build shared library
 127 SHARED_FLAG = -q64 -b64 -bexpall -G -bnoentry -qmkshrobj -brtl -bnolibpath
 128 
 129 #------------------------------------------------------------------------
 130 # Debug flags
 131 
 132 # Always compile with '-g' to get symbols in the stacktraces in the hs_err file
 133 DEBUG_CFLAGS += -g
 134 FASTDEBUG_CFLAGS += -g
 135 OPT_CFLAGS += -g
 136 
 137 # DEBUG_BINARIES overrides everything, use full -g debug information
 138 ifeq ($(DEBUG_BINARIES), true)
 139   DEBUG_CFLAGS = -g
 140   CFLAGS += $(DEBUG_CFLAGS)
 141 endif
 142 
 143 # If we are building HEADLESS, pass on to VM
 144 # so it can set the java.awt.headless property
 145 ifdef HEADLESS
 146 CFLAGS += -DHEADLESS
 147 endif


 107 OPT_CFLAGS += -qalias=noansi
 108 
 109 OPT_CFLAGS/NOOPT=-qnoopt
 110 
 111 DEPFLAGS = -qmakedep=gcc -MF $(DEP_DIR)/$(@:%=%.d)
 112 
 113 #------------------------------------------------------------------------
 114 # Linker flags
 115 
 116 # statically link libstdc++.so, work with gcc but ignored by g++
 117 STATIC_STDCXX = -Wl,-lC_r
 118 
 119 # Enable linker optimization
 120 # no counterpart on xlc for this 
 121 # LFLAGS += -Xlinker -O1
 122 
 123 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
 124 # MAPFLAG = -Xlinker --version-script=FILENAME
 125 
 126 # Build shared library
 127 SHARED_FLAG = -q64 -b64 -bexpall -G -bnoentry -qmkshrobj -brtl -bnolibpath -bernotok
 128 
 129 #------------------------------------------------------------------------
 130 # Debug flags
 131 
 132 # Always compile with '-g' to get symbols in the stacktraces in the hs_err file
 133 DEBUG_CFLAGS += -g
 134 FASTDEBUG_CFLAGS += -g
 135 OPT_CFLAGS += -g
 136 
 137 # DEBUG_BINARIES overrides everything, use full -g debug information
 138 ifeq ($(DEBUG_BINARIES), true)
 139   DEBUG_CFLAGS = -g
 140   CFLAGS += $(DEBUG_CFLAGS)
 141 endif
 142 
 143 # If we are building HEADLESS, pass on to VM
 144 # so it can set the java.awt.headless property
 145 ifdef HEADLESS
 146 CFLAGS += -DHEADLESS
 147 endif