From xemacs-m  Sat May 24 22:59:27 1997
Received: from gadid.idb.hist.no (root@gadid.idb.hist.no [158.38.62.111])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id WAA28891
	for <xemacs-beta@xemacs.org>; Sat, 24 May 1997 22:59:26 -0500 (CDT)
To: xemacs-beta@xemacs.org
Subject: Patch to compile static on linux and sparc
X-Face: 7U?{qG*};!";6^sh9?-.]Hb$z},N"8X;:W@c[5~aStGFgXrHNt*B@l\%&nc:"4MOpYwk-[z
 c./^DGb:~Jv{_'^?tXL0\=4>42}41AoD6G*Jj$:>lyu~:R-rA3BMejs/X%o:reGb&%L@Z{HIjRL10v
 0|h,R0sQSrde5~?N4c0/i
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: multipart/mixed;
 boundary="Multipart_Sat_May_24_13:45:50_1997-1"
Content-Transfer-Encoding: 7bit
From: Stig Bjorlykke <stigb@colargol.idb.hist.no>
Date: 24 May 1997 13:45:50 +0200
Message-ID: <4rzptl855d.fsf@gadid.idb.hist.no>
Lines: 52
X-Mailer: Gnus v5.4.52/XEmacs 20.2

--Multipart_Sat_May_24_13:45:50_1997-1
Content-Type: text/plain; charset=US-ASCII

Hi.

Frederic Poncin and myself made a patch to compile a static XEmacs
binary when we made the XEmacs RPM.  Could something like this be
included in the distribution?  This one is made on 20.2.

If we don't use this patch we have to compile the whole thing once
again just to get the XEmacs binary, and that's a waste of time :)

-- 
Stig Bjrlykke
Red Hat Linux User

--Multipart_Sat_May_24_13:45:50_1997-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="xemacs-20.2-static.patch"
Content-Transfer-Encoding: 7bit

--- xemacs-20.2/src/Makefile.in.in.stigb	Tue May 20 23:19:11 1997
+++ xemacs-20.2/src/Makefile.in.in	Tue May 20 23:18:51 1997
@@ -1421,10 +1421,26 @@
 		${STARTFILES} ${objs} ${mule_objs} ${otherobjs} OBJECTS_SYSTEM \
 		OBJECTS_MACHINE ${LIBES}
 
+#define TEMACS_LINK_ARGS_STATIC_SPARC  YMF_PASS_LDFLAGS \
+		(${STARTFLAGS} ${LDFLAGS} LD_SWITCH_CALL_SHARED -Bstatic -noinhibit-exec) -o $@ \
+		${STARTFILES} ${objs} ${mule_objs} ${otherobjs} OBJECTS_SYSTEM \
+		OBJECTS_MACHINE ${LIBES}
+ 
+#define TEMACS_LINK_ARGS_STATIC_I386  YMF_PASS_LDFLAGS \
+		(${STARTFLAGS} ${LDFLAGS} LD_SWITCH_CALL_SHARED -Bstatic) -o $@ \
+		${STARTFILES} ${objs} ${mule_objs} ${otherobjs} OBJECTS_SYSTEM \
+		OBJECTS_MACHINE ${LIBES}
+
 temacs_deps: TEMACS_DEPS
 
 temacs: TEMACS_DEPS
 	$(LD) LCCLINK TEMACS_LINK_ARGS
+
+temacs-static-sparc: TEMACS_DEPS
+	$(LD) LCCLINK TEMACS_LINK_ARGS_STATIC_SPARC
+
+temacs-static-i386: TEMACS_DEPS
+	$(LD) LCCLINK TEMACS_LINK_ARGS_STATIC_I386
 
 cemacs: TEMACS_DEPS
 	$(LD) $(ENERGIZEP) TEMACS_LINK_ARGS

--Multipart_Sat_May_24_13:45:50_1997-1--

