Subject: Re: emacs in pkgsrc not building
To: John F. Woods <jfw@jfwhome.funhouse.com>
From: enami tsugutomo <enami@but-b.or.jp>
List: current-users
Date: 10/18/1997 08:40:45
"John F. Woods" <jfw@jfwhome.funhouse.com> writes:
> However, adding an explicit "-e start" to the cc command line generated a
> viable temacs executable which went on to do the right thing.
I agree with that passing an entry point explicitly when cc is used
with option -nostdlib is the right solution.
We can use the macro constant LD_SWITCH_SYSTEM_TEMACS for this
purpose. I didn't conditionalize by NetBSD version, but probably
specifying entry point won't hurt old version of NetBSD, will it?
enami.
cd /a/tmp/emacs-20.2/src/s/
diff -c /a/tmp/emacs-20.2/src/s/netbsd.h\~ /a/tmp/emacs-20.2/src/s/netbsd.h
*** /a/tmp/emacs-20.2/src/s/netbsd.h~ Wed Jun 11 10:09:55 1997
--- /a/tmp/emacs-20.2/src/s/netbsd.h Sat Oct 18 08:21:38 1997
***************
*** 66,72 ****
#define AMPERSAND_FULL_NAME
! #ifdef __ELF__
/* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
says where to find X windows at run time. We convert it to a -rpath option
which is what OSF1 uses. */
--- 66,74 ----
#define AMPERSAND_FULL_NAME
! #ifndef __ELF__
! #define LD_SWITCH_SYSTEM_TEMACS -e start
! #else /* __ELF__ */
/* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
says where to find X windows at run time. We convert it to a -rpath option
which is what OSF1 uses. */
Diff finished at Sat Oct 18 08:29:50