From: Rick Bird Date: Fri, 5 Aug 2011 23:53:26 +0000 (-0400) Subject: More Darwin/Debian friendliness X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=c340dbc6aafb82cb7306653a2791ba1c0f7fd197;p=cobramush.git More Darwin/Debian friendliness --- 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