From c340dbc6aafb82cb7306653a2791ba1c0f7fd197 Mon Sep 17 00:00:00 2001 From: Rick Bird Date: Fri, 5 Aug 2011 19:53:26 -0400 Subject: [PATCH] More Darwin/Debian friendliness --- configure.ac | 1 + src/Makefile.in | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 602b278..3b95545 100644 --- a/configure.ac +++ b/configure.ac @@ -22,6 +22,7 @@ if test $host_os = "Darwin"; then AC_PATH_PROG(LIBTOOL, glibtool) else AC_PATH_PROG(LIBTOOL, libtool) + AC_SUBST(EDYNAMIC, -export-dynamic) fi echo $host_os; diff --git a/src/Makefile.in b/src/Makefile.in index 5e52ecd..eefc22e 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -7,7 +7,7 @@ OUTFILES=buildinf netmud info_slave # Libs EXCEPT for SQL ones -LIBS=$(CLIBS) +LIBS=$(CLIBS) CFLAGS=$(CCFLAGS) $(SQL_CFLAGS) @@ -56,7 +56,7 @@ netmud: $(O_FILES) @echo "Making netmud." -mv -f netmud netmud~ # $(CC) $(CCFLAGS) -o netmud $(O_FILES) $(LDFLAGS) $(SQL_LDFLAGS) $(LIBS) - $(LIBTOOL) --mode=link $(CC) -export-dynamic $(LDFLAGS) $(SQL_LDFLAGS) $(CCFLAGS) -o netmud $(O_FILES) $(LIBS) + $(LIBTOOL) --mode=link $(CC) @EDYNAMIC@ $(LDFLAGS) $(SQL_LDFLAGS) $(CCFLAGS) -o netmud $(O_FILES) $(LIBS) # We recompile mysocket.c instead of reusing mysocket.o because we -- 2.30.2