Subversion Repositories DevTools

Rev

Rev 335 | Rev 341 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 335 Rev 339
Line 358... Line 358...
358
 
358
 
359
#..     Linked (shared library support)
359
#..     Linked (shared library support)
360
#
360
#
361
#       The following are detailed within the context of TARGET definition:
361
#       The following are detailed within the context of TARGET definition:
362
#
362
#
363
#       SHNAME  Defines the shared library name (eg lib.so.1.1)
363
#       SHNAME  Defines the shared library soname (eg lib.so.1.1)
364
#       SHBASE  Defines the base library name (eg lib.so)
364
#       SHBASE  Defines the base library linkname (eg lib.so)
365
#
365
#
366
shld		= $(CC_PRE) $(SUNWSPRO_SC)/bin/CC
366
shld		= $(CC_PRE) $(SUNWSPRO_SC)/bin/CC
367
shld_init	=
367
shld_init	=
368
shld_o_switch	= -o $@
368
shld_o_switch	= -o $@
369
 
369
 
370
shld_flags	+= +w -G -h'$(SHBASE)$(GBE_TYPE).so'
370
shld_flags	+= +w -G -h'$(SHNAME)'
371
ifdef USE_DEBUGINFO
371
ifdef USE_DEBUGINFO
372
shld_flags	+= -g
372
shld_flags	+= -g
373
endif
373
endif
374
shld_flags      += $(common_flags)
374
shld_flags      += $(common_flags)
375
shld_flags	+= \
375
shld_flags	+= \
376
		$(patsubst %,-L%,$(LIBDIRS)) \
376
		$(patsubst %,-L%,$(LIBDIRS)) \
377
		$(patsubst %,-%,$(LDFLAGS)) \
377
		$(patsubst %,-%,$(LDFLAGS)) \
378
		$($(notdir $(SHBASE))_ld)
378
		$($(notdir $(SHBASE))_shld)
379
 
379
 
380
define shld_pre
380
define shld_pre
381
	@echo [$@] Linking shared library ..
381
	@echo [$@] Linking shared library ..
382
endef
382
endef
383
 
383