159 ifeq ($(ARCH_DATA_MODEL), 64)
160 DEBUG_FLAG = -g1
161 endif
162 endif
163
164 CFLAGS_OPT = $(POPT)
165 CFLAGS_DBG = $(DEBUG_FLAG)
166 CFLAGS_COMMON += $(CFLAGS_REQUIRED)
167
168 CXXFLAGS_COMMON = $(GLOBAL_KPIC) -DCC_NOEX $(GCC_WARNINGS)
169 CXXFLAGS_OPT = $(POPT)
170 CXXFLAGS_DBG = $(DEBUG_FLAG)
171 CXXFLAGS_COMMON += $(CFLAGS_REQUIRED)
172
173 # FASTDEBUG: Optimize the code in the -g versions, gives us a faster debug java
174 ifeq ($(FASTDEBUG), true)
175 CFLAGS_DBG += $(CC_LOWER_OPT)
176 CXXFLAGS_DBG += $(CC_LOWER_OPT)
177 endif
178
179 CPPFLAGS_COMMON = -D$(ARCH) -DARCH='"$(ARCH)"' -DLINUX $(VERSION_DEFINES) \
180 -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT
181
182 ifeq ($(ARCH_DATA_MODEL), 64)
183 CPPFLAGS_COMMON += -D_LP64=1
184 endif
185
186 CPPFLAGS_OPT =
187 CPPFLAGS_DBG = -DDEBUG
188
189 ifdef LIBRARY
190 # Libraries need to locate other libraries at runtime, and you can tell
191 # a library where to look by way of the dynamic runpaths (RPATH or RUNPATH)
192 # buried inside the .so. The $ORIGIN says to look relative to where
193 # the library itself is and it can be followed with relative paths from
194 # that. By default we always look in $ORIGIN, optionally we add relative
195 # paths if the Makefile sets LD_RUNPATH_EXTRAS to those relative paths.
196 # On Linux we add a flag -z origin, not sure if this is necessary, but
197 # doesn't seem to hurt.
198 # The environment variable LD_LIBRARY_PATH will over-ride these runpaths.
199 # Try: 'readelf -d lib*.so' to see these settings in a library.
|
159 ifeq ($(ARCH_DATA_MODEL), 64)
160 DEBUG_FLAG = -g1
161 endif
162 endif
163
164 CFLAGS_OPT = $(POPT)
165 CFLAGS_DBG = $(DEBUG_FLAG)
166 CFLAGS_COMMON += $(CFLAGS_REQUIRED)
167
168 CXXFLAGS_COMMON = $(GLOBAL_KPIC) -DCC_NOEX $(GCC_WARNINGS)
169 CXXFLAGS_OPT = $(POPT)
170 CXXFLAGS_DBG = $(DEBUG_FLAG)
171 CXXFLAGS_COMMON += $(CFLAGS_REQUIRED)
172
173 # FASTDEBUG: Optimize the code in the -g versions, gives us a faster debug java
174 ifeq ($(FASTDEBUG), true)
175 CFLAGS_DBG += $(CC_LOWER_OPT)
176 CXXFLAGS_DBG += $(CC_LOWER_OPT)
177 endif
178
179 CPPFLAGS_COMMON = -D_$(ARCH)_ $(if $(filter $(ARCH),alpha),,-D$(ARCH)) \
180 -DARCH='"$(ARCH)"' -DLINUX $(VERSION_DEFINES) \
181 -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT
182
183 ifeq ($(ARCH_DATA_MODEL), 64)
184 CPPFLAGS_COMMON += -D_LP64=1
185 endif
186
187 CPPFLAGS_OPT =
188 CPPFLAGS_DBG = -DDEBUG
189
190 ifdef LIBRARY
191 # Libraries need to locate other libraries at runtime, and you can tell
192 # a library where to look by way of the dynamic runpaths (RPATH or RUNPATH)
193 # buried inside the .so. The $ORIGIN says to look relative to where
194 # the library itself is and it can be followed with relative paths from
195 # that. By default we always look in $ORIGIN, optionally we add relative
196 # paths if the Makefile sets LD_RUNPATH_EXTRAS to those relative paths.
197 # On Linux we add a flag -z origin, not sure if this is necessary, but
198 # doesn't seem to hurt.
199 # The environment variable LD_LIBRARY_PATH will over-ride these runpaths.
200 # Try: 'readelf -d lib*.so' to see these settings in a library.
|