From 4d4023555b8c4e5812d2ac67242fe7754acc6def Mon Sep 17 00:00:00 2001 From: kpfleming Date: Tue, 1 Nov 2005 21:53:30 +0000 Subject: issue #4678 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6936 f38db490-d61c-443f-a65b-d21fe96a405b --- formats/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'formats/Makefile') diff --git a/formats/Makefile b/formats/Makefile index 823515c24..31f973390 100755 --- a/formats/Makefile +++ b/formats/Makefile @@ -35,25 +35,29 @@ endif GSMLIB=../codecs/gsm/lib/libgsm.a +ifeq (${OSARCH},CYGWIN) +CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols +CYGSOLIB=-L.. -L. -lasterisk.dll +else CFLAGS+=-fPIC - +endif all: depend $(FORMAT_LIBS) clean: rm -f *.so *.o .depend %.so : %.o - $(CC) $(SOLINK) -o $@ $< + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} ifneq ($(wildcard .depend),) include .depend endif format_mp3.so : format_mp3.o - $(CC) $(SOLINK) -o $@ $< -lm + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lm format_ogg_vorbis.so : format_ogg_vorbis.o - $(CC) $(SOLINK) -o $@ $< -logg -lvorbis -lvorbisenc -lm + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -logg -lvorbis -lvorbisenc -lm install: all for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done -- cgit v1.2.3