diff --git a/Makefile.am b/Makefile.am index ea4b6b1b1e..eda687270d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,7 +6,6 @@ NAME=freeswitch PREFIX=$(prefix)/${NAME} APR_CONFIG=$(prefix)/bin/apr-1-config AM_CFLAGS = $(shell $(APR_CONFIG) --cflags --cppflags --includes) -SOLINK=-shared -Xlinker -x AM_LDFLAGS = $(shell $(APR_CONFIG) --link-ld --libs ) OSARCH=$(shell uname -s) @@ -16,6 +15,8 @@ endif if ISMAC SOLINK=-dynamic -bundle -undefined suppress -force_flat_namespace +else +SOLINK=-shared -Xlinker -x endif diff --git a/Makefile.in b/Makefile.in index 102c14d7f5..bc12f81b32 100644 --- a/Makefile.in +++ b/Makefile.in @@ -230,11 +230,11 @@ AM_CFLAGS = $(shell $(APR_CONFIG) --cflags --cppflags --includes) \ -DSWITCH_MOD_DIR=\"$(PREFIX)/mod\" \ -DSWITCH_PREFIX_DIR=\"$(PREFIX)\" \ -DSWITCH_CONF_DIR=\"$(PREFIX)/conf\" -@ISMAC_TRUE@SOLINK = -dynamic -bundle -undefined suppress -force_flat_namespace -SOLINK = -shared -Xlinker -x AM_LDFLAGS = $(shell $(APR_CONFIG) --link-ld --libs ) $(am__append_1) \ -L$(PREFIX)/lib OSARCH = $(shell uname -s) +@ISMAC_FALSE@SOLINK = -shared -Xlinker -x +@ISMAC_TRUE@SOLINK = -dynamic -bundle -undefined suppress -force_flat_namespace libfreeswitch_la_SOURCES = \ src/include/switch.h \ src/include/switch_channel.h \