From 01dc8b8ee0ff54941656bdf688f5ab095acd1ad3 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 7 Jun 2010 21:06:39 +0200 Subject: Adding pre-compiled gmp support. --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d255e83..311e5e2 100644 --- a/Makefile +++ b/Makefile @@ -36,12 +36,16 @@ FINK=$(USR) LIBXM = $(FINK) endif LIBXM = $(FINK)/sw/lib/libXm.a -lXp +GMPLIBDIR=../gmp-4.3.2-darwin9/lib +GMP_LIBS=-all_load $(GMPLIBDIR)/libgmpxx.a $(GMPLIBDIR)/libgmp.a else ARCH_FLAGS=-march=i686 -m32 SHARED_FLAGS=-shared SHARED_EXT=so LD = g++ -m32 STRIP = strip --strip-unneeded +GMPLIBDIR=../gmp-4.3.2-linux/lib +GMP_LIBS=-Wl,--whole-archive $(GMPLIBDIR)/libgmpxx.a $(GMPLIBDIR)/libgmp.a -Wl,--no-whole-archive endif INCLUDES = \ @@ -65,8 +69,6 @@ GMP_SOURCES = \ plugin-luagmp.cc \ lgmp.lua \ -GMP_LIBS = -lgmp - WHOLE_SOURCES = \ $(GMP_SOURCES) \ @@ -91,7 +93,7 @@ luagmp.a: $(addsuffix .o, $(notdir $(basename $(GMP_SOURCES)))) $(AR) $@ $+ luagmp.$(SHARED_EXT): plugin-luagmp.o luagmp.a - $(LD) $(LDFLAGS) -o $@ $+ $(IM_LIBS) $(CD_LIBS) $(IUP_LIBS) + $(LD) $(LDFLAGS) -o $@ $+ $(GMP_LIBS) clean: rm -f *.o *.dep *.so *.dylib *.a -- cgit v1.2.3