From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3034d6e528afdbe9 X-Google-Attributes: gidfee84,public X-Google-Thread: 10eb76,3034d6e528afdbe9 X-Google-Attributes: gid10eb76,public X-Google-ArrivalTime: 1994-02-25 09:09:45 PST Xref: gmd.de comp.unix.osf.osf1:2329 comp.lang.tcl:11144 Path: gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!cs.umd.edu!mojo.eng.umd.edu!glue.umd.edu!djm From: djm@glue.umd.edu (David J. MacKenzie) Newsgroups: comp.unix.osf.osf1,comp.lang.tcl Subject: Re: Making a shared libtcl on DEC Alpha OSF/1 Date: 24 Feb 1994 16:37:16 GMT Organization: Cygnus Support Distribution: world Message-ID: References: NNTP-Posting-Host: burnout.eng.umd.edu In-reply-to: anthony@aaii.oz.au's message of Thu, 24 Feb 1994 03:04:01 GMT This works for me. --- 1.1 1994/02/11 20:05:17 +++ Makefile.in 1994/02/11 20:43:47 @@ -157,11 +157,20 @@ ar cr libtcl.a ${OBJS} $(RANLIB) libtcl.a +# OSF/1. +libtcl.so: ${OBJS} tclAppInit.o + rm -f libtcl.so + ld -shared -no_archive -o libtcl.so ${OBJS} tclAppInit.o ${MATH_LIBS} -lc + +tclsh.shared: tclAppInit.o libtcl.so + ${CC} ${CC_SWITCHES} libtcl.so tclAppInit.o ${MATH_LIBS} -o $@ +# End OSF/1. + tclsh: tclAppInit.c - ${CC} ${CC_SWITCHES} tclAppInit.c $(LD_DIR) -ltcl ${MATH_LIBS} -o tclsh + ${CC} ${CC_SWITCHES} ${SRC_DIR}/tclAppInit.c $(LD_DIR) -ltcl ${MATH_LIBS} -o tclsh tcltest: tclTest.o - ${CC} ${CC_SWITCHES} tclTest.c $(LD_DIR) -ltcl ${MATH_LIBS} -o tcltest + ${CC} ${CC_SWITCHES} ${SRC_DIR}/tclTest.c $(LD_DIR) -ltcl ${MATH_LIBS} -o tcltest test: tcltest @cwd=`pwd`; \ And for tk: --- 1.1 1994/02/11 20:06:03 +++ Makefile.in 1994/02/11 20:31:32 @@ -175,11 +175,22 @@ ar cr libtk.a $(OBJS) $(RANLIB) libtk.a +# OSF/1. +SOLIBS = ../tcl7.3/libtcl.a $(X11_LIB_SWITCHES) @LIBS@ -lm +libtk.so: ${OBJS} tkAppInit.o + rm -f libtk.so + ld -shared -no_archive -o libtk.so ${OBJS} tkAppInit.o $(SOLIBS) -lc + +SHLIBS = libtk.so $(X11_LIB_SWITCHES) @LIBS@ -lm +wish.shared: tkAppInit.o libtk.so + $(CC) $(CC_SWITCHES) $(SHLIBS) tkAppInit.o -o $@ +# End OSF/1. + wish: tkAppInit.c - $(CC) $(CC_SWITCHES) tkAppInit.c $(LD_DIR) $(LIBS) -o wish + $(CC) $(CC_SWITCHES) ${SRC_DIR}/tkAppInit.c $(LD_DIR) $(LIBS) -o wish tktest: tkTest.c - ${CC} ${CC_SWITCHES} tkTest.c $(LD_DIR) $(LIBS) -o tktest + ${CC} ${CC_SWITCHES} ${SRC_DIR}/tkTest.c $(LD_DIR) $(LIBS) -o tktest test: tktest @cwd=`pwd`; \