mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Export dynamic (weak-linked) symbols correctly.
(closes issue #15193) Reported by: eliel Patches: 20091111__issue15193.diff.txt uploaded by tilghman (license 14) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@231439 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -49,7 +49,10 @@ CC_CFLAGS=$(PTHREAD_CFLAGS) $(_ASTCFLAGS) $(ASTCFLAGS) | ||||
| CXX_CFLAGS=$(PTHREAD_CFLAGS) $(filter-out -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(AST_DECLARATION_AFTER_STATEMENT),$(_ASTCFLAGS) $(ASTCFLAGS)) | ||||
|  | ||||
| ifeq ($(GNU_LD),1) | ||||
| SO_SUPPRESS_SYMBOLS=-Wl,--version-script,$(if $(wildcard $(subst .so,.exports,$@)),$(subst .so,.exports,$@),$(ASTTOPDIR)/default.exports) | ||||
| SO_SUPPRESS_SYMBOLS=-Wl,--version-script,$(if $(wildcard $(subst .so,.exports,$@)),$(subst .so,.exports,$@),$(ASTTOPDIR)/default.exports),--warn-common | ||||
| ifneq ($(wildcard $(subst .so,.dynamics,$@)),) | ||||
| SO_SUPPRESS_SYMBOLS+=-Wl,--dynamic-list,$(subst .so,.dynamics,$@) | ||||
| endif | ||||
| endif | ||||
|  | ||||
| CC_LDFLAGS_SO=$(PTHREAD_CFLAGS) $(_ASTLDFLAGS) $(SOLINK) $(SO_SUPPRESS_SYMBOLS) $(ASTLDFLAGS) | ||||
|   | ||||
							
								
								
									
										6
									
								
								main/asterisk.dynamics
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								main/asterisk.dynamics
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| { | ||||
| 	ast_agi_*; | ||||
| 	ast_pktccops_*; | ||||
| 	ast_smdi_*; | ||||
| 	ast_monitor_*; | ||||
| }; | ||||
		Reference in New Issue
	
	Block a user