From 0399d007f31092f3998c0258caf30a5e6f2933f2 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Sat, 27 Sep 2003 00:32:01 +0000
Subject: [PATCH] Use proper compiler flag for global symbols

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 616f1d2120..d15b9fc2ed 100755
--- a/Makefile
+++ b/Makefile
@@ -203,7 +203,7 @@ stdtime/localtime.o:
 	fi
 
 asterisk: editline/libedit.a db1-ast/libdb1.a stdtime/localtime.o $(OBJS)
-	$(CC) $(DEBUG) -o asterisk -rdynamic $(OBJS) $(LIBS) $(LIBEDIT) db1-ast/libdb1.a stdtime/localtime.o
+	$(CC) $(DEBUG) -o asterisk -Wl,-E $(OBJS) $(LIBS) $(LIBEDIT) db1-ast/libdb1.a stdtime/localtime.o
 
 subdirs: 
 	for x in $(SUBDIRS); do $(MAKE) -C $$x || exit 1 ; done
@@ -412,6 +412,6 @@ valgrind: dont-optimize
 depend: .depend
 	for x in $(SUBDIRS); do $(MAKE) -C $$x depend || exit 1 ; done
 
-.depend:
+.depend: build.h
 	./mkdep ${CFLAGS} `ls *.c`
 
-- 
GitLab