tweak for gcc build on solaris
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8847 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
424e771ea1
commit
872c349fec
|
@ -112,9 +112,9 @@ $(MODNAME).$(DYNAMIC_LIB_EXTEN): $(LIBS) $(LOCAL_LIBADD) $(OUR_DEPS) $(LOCAL_OBJ
|
||||||
@test -d .libs || mkdir .libs
|
@test -d .libs || mkdir .libs
|
||||||
@error="";\
|
@error="";\
|
||||||
if test -f $(CSOURCEFILE); then \
|
if test -f $(CSOURCEFILE); then \
|
||||||
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LIBS) $(LOCAL_LDFLAGS) $(LOCAL_OBJS) $(OUR_OBJS) $(LOCAL_LIBADD) $(LINK_OUTPUT_REDIR) ;\
|
$(LINK) $(SOLINK) $(MODNAME).o $(LIBS) $(LOCAL_LDFLAGS) $(LOCAL_OBJS) $(OUR_OBJS) $(LOCAL_LIBADD) $(LINK_OUTPUT_REDIR) ;\
|
||||||
else \
|
else \
|
||||||
$(CXXLINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LIBS) $(LOCAL_LDFLAGS) $(LOCAL_OBJS) $(OUR_OBJS) $(LOCAL_LIBADD) $(LINK_OUTPUT_REDIR) ;\
|
$(CXXLINK) $(SOLINK) $(MODNAME).o $(LIBS) $(LOCAL_LDFLAGS) $(LOCAL_OBJS) $(OUR_OBJS) $(LOCAL_LIBADD) $(LINK_OUTPUT_REDIR) ;\
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
mod_clean:
|
mod_clean:
|
||||||
|
|
|
@ -100,6 +100,9 @@ elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||||
*darwin*)
|
*darwin*)
|
||||||
SOLINK="-dynamic -bundle -force-flat-namespace"
|
SOLINK="-dynamic -bundle -force-flat-namespace"
|
||||||
;;
|
;;
|
||||||
|
*-solaris2*)
|
||||||
|
SOLINK="-shared -Xlinker"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue