rev 146 - in trunk: . src

SVN User <[email protected]>
Newsgroups gmane.comp.lang.prothon.cvs
Message-ID <[email protected]>
Author: bcollins
Date: 2004-03-26 21:39:20 -0500 (Fri, 26 Mar 2004)
New Revision: 146

Modified:
   trunk/Rules.mk.in
   trunk/src/Makefile.in
Log:
Integrate libtool usage into prothon part of the build.


Modified: trunk/Rules.mk.in
===================================================================
--- trunk/Rules.mk.in	2004-03-27 02:18:31 UTC (rev 145)
+++ trunk/Rules.mk.in	2004-03-27 02:39:20 UTC (rev 146)
@@ -26,3 +26,24 @@
 INSTALL_DATA=$(INSTALL) -m 644
 INSTALL_PROGRAM=$(INSTALL) -m 755
 INSTALL_DIR=$(INSTALL) -d -m 755
+
+LIBTOOL = @LIBTOOL@
+LTFLAGS = --silent
+LT_LDFLAGS = @LT_LDFLAGS@
+
+COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES)
+LT_COMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE)
+
+LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS) -rpath $(libdir)
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .la-a .la
+
+.c.o:
+	$(COMPILE) -o $@ -c $<
+
+.c.lo:
+	$(LT_COMPILE) -o $@ -c $<
+
+.la.la-a:
+	sed "/library_names/s/'.*'/''/" $< > $@

Modified: trunk/src/Makefile.in
===================================================================
--- trunk/src/Makefile.in	2004-03-27 02:18:31 UTC (rev 145)
+++ trunk/src/Makefile.in	2004-03-27 02:39:20 UTC (rev 146)
@@ -9,10 +9,6 @@
 
 include ../Rules.mk
 
-# The -rdynamic makes it so that the binary can export symbols to the
-# modules. This is needed.
-LDFLAGS += -rdynamic
-
 TARGET=prothon
 OBJS = argproc.o clist.o lock.o memory_mgr.o parser.o prmalloc.o sys.o \
 	builtins.o interp.o main.o object.o parser_routines.o symbol.o \
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.