diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-01 21:53:30 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-01 21:53:30 +0000 |
commit | 4d4023555b8c4e5812d2ac67242fe7754acc6def (patch) | |
tree | 17036a33b500972a312f1a5b2c75bee313f4b4d1 /formats | |
parent | a68250b79bf5358b7cf67bbd9185409a17993abc (diff) |
issue #4678
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6936 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'formats')
-rwxr-xr-x | formats/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
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 |