Use proper compiler flag for global symbols
authorMark Spencer <markster@digium.com>
Sat, 27 Sep 2003 00:32:01 +0000 (00:32 +0000)
committerMark Spencer <markster@digium.com>
Sat, 27 Sep 2003 00:32:01 +0000 (00:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1557 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index 616f1d2..d15b9fc 100755 (executable)
--- 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`