From a7f22bfdedb8470d757894f2bab6776341cf8458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20R=C3=A9mond?= Date: Mon, 28 Aug 2006 14:56:13 +0000 Subject: * Makefile.in: Fix for MacOSX compilation (EJAB-124). * ejabberd_zlib/Makefile.in: Likewise. * mod_irc/Makefile.in: Likewise. * stringprep/Makefile.in: Likewise. * tls/Makefile.in: Likewise. SVN Revision: 596 --- src/stringprep/Makefile.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/stringprep') diff --git a/src/stringprep/Makefile.in b/src/stringprep/Makefile.in index 7717878a1..2d858cc2e 100644 --- a/src/stringprep/Makefile.in +++ b/src/stringprep/Makefile.in @@ -6,6 +6,13 @@ CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ @ERLANG_LIBS@ +ifeq ($(shell uname),Darwin) +DYNAMIC_LIB_CFLAGS = -fPIC -bundle -flat_namespace -undefined suppress +else +# Assume Linux-style dynamic library flags +DYNAMIC_LIB_CFLAGS = -fpic -shared +endif + SUBDIRS = ERLSHLIBS = ../stringprep_drv.so @@ -26,7 +33,7 @@ $(OUTDIR)/%.beam: %.erl $(ERLSHLIBS): ../%.so: %.c uni_data.c uni_norm.c gcc -Wall -O2 $(CFLAGS) $(LDFLAGS) $(INCLUDES) \ $(subst ../,,$(subst .so,.c,$@)) $(LIBS) \ - -o $@ -fpic -shared + -o $@ $(DYNAMIC_LIB_CFLAGS) clean: rm -f $(OBJS) $(ERLSHLIBS) -- cgit v1.2.3